forked from jenkins-docs/simple-python-pyinstaller-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 727 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 727 Bytes
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
FROM python:3
RUN apt-get update && apt-get install -y \
libpq-dev \
gcc \
gettext
# Requirements are installed here to ensure they will be cached.
COPY ./requirements.txt /requirements.txt
RUN pip install --no-cache-dir --default-timeout=200 -r /requirements.txt \
&& rm -rf /requirements.txt
COPY ./entrypoint.sh /entrypoint
RUN sed -i 's/\r$//g' /entrypoint
RUN chmod +x /entrypoint
COPY ./start-django.sh /start-django
RUN sed -i 's/\r$//g' /start-django
RUN chmod +x /start-django
COPY . /app
COPY config/nginx/default /etc/nginx/sites-available/default
COPY config/nginx/nginx.conf /etc/nginx/nginx.conf
WORKDIR /app
EXPOSE 80/tcp 443/tcp
ENTRYPOINT ["/entrypoint"]
CMD ["sh" , "/start-django"]