-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (23 loc) · 820 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM almalinux
MAINTAINER Hajime Kurita
# Setup
RUN yes | rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
RUN yes | dnf install epel-release
RUN yes | dnf update -y
RUN yes | dnf install python3
RUN yes | dnf install libpq-devel
RUN yes | dnf install python3-devel
# RUN yes | dnf module disable postgresql;
# RUN yes | dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm;
RUN yes | dnf -y install postgresql;
RUN yes | dnf -y install postgresql-devel;
RUN yes | dnf install gcc;
RUN python3 -m pip install --user --upgrade pip
COPY ./requirements.txt /tmp/
RUN python3 -m pip install -r /tmp/requirements.txt
ENV PJ djangopj
RUN mkdir -p /var/www/$PJ
WORKDIR /var/www/$PJ
COPY $PJ /var/www/$PJ
RUN mkdir -p /var/www/$PJ/static/admin
ENV PYTHONUNBUFFERED 1