forked from buildlyio/buildly-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (16 loc) · 676 Bytes
/
Dockerfile
File metadata and controls
25 lines (16 loc) · 676 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
FROM python:3.7-alpine3.10
# Do not buffer log messages in memory; some messages can be lost otherwise
ENV PYTHONUNBUFFERED 1
RUN apk update
WORKDIR /code
RUN apk add --no-cache postgresql-libs bash &&\
apk add --no-cache --virtual .build-deps git python-dev gcc musl-dev postgresql-dev libffi-dev libressl-dev
COPY ./requirements/base.txt requirements/base.txt
COPY ./requirements/production.txt requirements/production.txt
RUN pip install --upgrade pip && pip install -r requirements/production.txt --no-cache-dir
ADD . /code
# Collecting static files
RUN ./collectstatic.sh
RUN apk del .build-deps
EXPOSE 8080
ENTRYPOINT ["bash", "/code/docker-entrypoint.sh"]