Skip to content

Instantly share code, notes, and snippets.

@dianaarnos
Last active May 8, 2020 15:04
Show Gist options
  • Save dianaarnos/8c3ddc2b2629fecfc4d67929c72131a3 to your computer and use it in GitHub Desktop.
Save dianaarnos/8c3ddc2b2629fecfc4d67929c72131a3 to your computer and use it in GitHub Desktop.
Basic python 3 Dockerfile
FROM python:3-alpine
WORKDIR /usr/src/app
COPY requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ .
#VOLUME src/ /usr/src/app
# run with docker run -it --rm <tagname>
# to run with interactive shell, add /bin/sh at the end of the command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment