Skip to content

Instantly share code, notes, and snippets.

@eduzen
Created May 19, 2019 18:30
Show Gist options
  • Save eduzen/7dd0458f5e2eeb2d9d8bbf235bd0102a to your computer and use it in GitHub Desktop.
Save eduzen/7dd0458f5e2eeb2d9d8bbf235bd0102a to your computer and use it in GitHub Desktop.
Dockerfile for Python script based on debian image.
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "python", "./your-daemon-or-script.py" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment