-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (19 loc) · 902 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
FROM python:alpine as base
# https://blog.sneawo.com/blog/2017/09/07/how-to-install-pillow-psycopg-pylibmc-packages-in-pythonalpine-image/
RUN apk add --no-cache jpeg-dev zlib-dev
ARG PYTHON_REQUIREMNTS=requirements.txt
COPY ${PYTHON_REQUIREMNTS} ${PYTHON_REQUIREMNTS}
RUN apk add --no-cache \
--virtual .build-deps build-base linux-headers git &&\
pip3 install --no-cache-dir -r ${PYTHON_REQUIREMNTS} &&\
apk del .build-deps
WORKDIR /stageOrchestration
ENTRYPOINT ["python3", "server.py"]
CMD [ "--config", "config.docker.yaml" ]
COPY ./ ./
FROM base as test
RUN pytest --doctest-modules
FROM base
#--config config.development.yaml --subscriptionserver_host display_trigger_server
# docker run --rm -it -p 23487:23487 superlimitbreak/stageorchestration --config config.production.yaml
# TODO: production - copy stageOrchestration code into container