Created
November 12, 2018 20:44
-
-
Save wouterdb/e5a7997b5d09eb9d8fc23861568bfd1e to your computer and use it in GitHub Desktop.
Lister dockerfile
This file contains hidden or 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
# 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