Skip to content

Instantly share code, notes, and snippets.

@wouterdb
Created November 12, 2018 20:44
Show Gist options
  • Save wouterdb/e5a7997b5d09eb9d8fc23861568bfd1e to your computer and use it in GitHub Desktop.
Save wouterdb/e5a7997b5d09eb9d8fc23861568bfd1e to your computer and use it in GitHub Desktop.
Lister dockerfile
# Use an official Python runtime as a parent image
FROM python:3.7-slim
# Set the working directory to /app
WORKDIR /www
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN mkdir -p /www/;touch /www/content
# Make port 80 available to the world outside this container
EXPOSE 8000
# Run app.py when the container launches
CMD ["python", "/app/lister.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment