-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 599 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 599 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.6-alpine
RUN apk --update --no-cache add \
yarn && \
mkdir -p /sarna/static/ && \
mkdir -p /sarna/uploaded_data
ADD requirements.txt /tmp/
RUN apk --no-cache add --virtual build-deps build-base libxslt-dev python3-dev jpeg-dev zlib-dev postgresql-dev musl-dev&& \
pip install -r /tmp/requirements.txt && \
apk del build-deps &&\
apk --no-cache add libmagic libxslt jpeg zlib libpq
ADD static/package.json /sarna/static/
RUN cd /sarna/static && yarn install
WORKDIR /sarna
COPY ./ /sarna/
ENV FLASK_ENV=production
EXPOSE 5000
ENTRYPOINT ["/sarna/entrypoint.sh"]