-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (30 loc) · 1.04 KB
/
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
30
31
32
33
34
35
FROM python:3.8.5-alpine3.11
# Build Args
ARG BUILD_DATE=None
ARG VCS_REF=None
ARG BUILD_VERSION=None
# Labels.
LABEL maintainer="[email protected]" \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="1904labs/flask-react-base" \
org.label-schema.description="1904labs flask react app base" \
org.label-schema.url="https://1904labs.com/" \
org.label-schema.vcs-url="https://github.com/1904labs/flask-react-base" \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vendor="1904labs" \
org.label-schema.version=${BUILD_VERSION} \
org.label-schema.docker.cmd="docker run -p 8080:80 -d 1904labs/flask-react-base:latest"
RUN set -ex && \
apk add --update --no-cache bash nodejs npm &&\
pip3 install pipenv
COPY . /opt/project
WORKDIR /opt/project
RUN pipenv install --deploy --system
RUN npm ci
RUN npm run build
CMD [ "gunicorn", \
"app:create_app('production')", \
"--workers", "15", \
"--bind", "0.0.0.0:8080" \
]