Created
August 13, 2019 09:46
-
-
Save nutzhub/71db85cce17b271211c6ac6797f19010 to your computer and use it in GitHub Desktop.
Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6-alpine3.6 | |
RUN apk update | |
RUN apk upgrade | |
RUN apk add --no-cache git openssh curl | |
ENV WORK_ENV=DEV | |
COPY . /api | |
WORKDIR /api | |
ADD run.py . | |
ADD requirements.txt . | |
RUN pip install -r requirements.txt | |
EXPOSE 5000 | |
# ENTRYPOINT ["python3.6", "run.py"] | |
CMD ["python3.6", "run.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FROM python:3.6-alpine3.6
RUN apk --update add git openssh curl &&
rm -rf /var/lib/apt/lists/* &&
rm /var/cache/apk/*
ENV WORK_ENV=DEV
ADD requirements.txt .
RUN pip install -r requirements.txt
COPY api /workshop-app/api
WORKDIR /workshop-app
ADD run.py .
EXPOSE 5000
CMD ["python3.6", "run.py"]