-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (27 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
39 lines (27 loc) · 1.1 KB
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
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:20.04
COPY . /app
WORKDIR /app
RUN apt update
RUN apt install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt install -y python3.9
RUN apt-get install -y python3-pip
RUN apt-get install -y curl
RUN apt install wget
RUN apt-get install -y locales && \
sed -i -e 's/# pt_BR.UTF-8 UTF-8/pt_BR.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
RUN apt install -y ./wkhtmltox_0.12.6-1.focal_amd64.deb
ENV LANG pt_BR.UTF-8
ENV LC_ALL pt_BR.UTF-8
#RUN apt install -y ./external/srcml_1.0.0-1_ubuntu20.04.deb
RUN apt install -y git postgresql postgresql-contrib graphviz
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install setuptools==57.4.0
RUN python3 -m pip install --no-cache-dir -r requirements.txt
# RUN psql -U postgres log
RUN cp config/.env_docker config/.env
EXPOSE 8000
CMD ["gunicorn", "--bind", ":8000", "--workers", "3", "config.wsgi:application"]
# CMD ["python", "manage.py", "runserver"]