-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 814 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (16 loc) · 814 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
FROM hseling/hseling-api-base:python3.6-alpine3.7 as build
LABEL maintainer="Sergey Sobko <ssobko@hse.ru>"
RUN mkdir /dependencies
COPY ./requirements.txt /dependencies/requirements.txt
COPY ./setup.py /dependencies/setup.py
COPY ./nltk_data /usr/local/nltk_data
RUN apk add python3 git
RUN pip install -r /dependencies/requirements.txt
FROM hseling/hseling-api-base:python3.6-alpine3.7 as production
COPY --from=build /usr/local/lib/python3.6/site-packages /usr/local/lib/python3.6/site-packages
COPY --from=build /usr/lib/python3.6/site-packages /usr/lib/python3.6/site-packages
COPY --from=build /usr/local/nltk_data /usr/local/nltk_data
COPY --from=build /dependencies /dependencies
COPY ./hseling_api_direct_speech /dependencies/hseling_api_direct_speech
RUN pip install /dependencies
COPY ./app /app