forked from groundnuty/io-lab-docker-ci-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (30 loc) · 936 Bytes
/
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
36
37
38
FROM python:3.7-alpine
LABEL maintainer="Michal Orzechowski <[email protected]>"
# Metadata schema args
ARG SCHEMA_NAME
ARG SCHEMA_DESCRIPTION
ARG SCHEMA_URL
ARG SCEHMA_VENDOR
ARG SCHEMA_VSC_URL
ARG SCHEMA_VCS_REF
ARG SCHEMA_BUILD_DATE
ARG SCHEMA_BUILD_VERSION
ARG SCHEMA_CMD
# Metadata
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name=$SCHEMA_NAME
LABEL org.label-schema.description=$SCHEMA_DESCRIPTION
LABEL org.label-schema.url=$SCHEMA_VSC_URL
LABEL org.label-schema.vendor=$SCEHMA_VENDOR
LABEL org.label-schema.vcs-url=$SCHEMA_VSC_URL
LABEL org.label-schema.vcs-ref=$SCHEMA_VCS_REF
LABEL org.label-schema.build-date=$SCHEMA_BUILD_DATE
LABEL org.label-schema.version=$SCHEMA_BUILD_VERSION
LABEL org.label-schema.docker.cmd=$SCHEMA_CMD
WORKDIR /code
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
ENV FLASK_APP app.py
ENV FLASK_RUN_HOST 0.0.0.0
COPY . .
CMD ["flask", "run"]