Skip to content

Instantly share code, notes, and snippets.

@nutzhub
Created August 13, 2019 09:46
Show Gist options
  • Save nutzhub/71db85cce17b271211c6ac6797f19010 to your computer and use it in GitHub Desktop.
Save nutzhub/71db85cce17b271211c6ac6797f19010 to your computer and use it in GitHub Desktop.
Dockerfile
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"]
@nutzhub
Copy link
Author

nutzhub commented Aug 13, 2019

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment