Skip to content

Instantly share code, notes, and snippets.

@marusinm
Created May 12, 2018 07:55
Show Gist options
  • Save marusinm/8331bfb2c3a8b196ab381c87d91ff339 to your computer and use it in GitHub Desktop.
Save marusinm/8331bfb2c3a8b196ab381c87d91ff339 to your computer and use it in GitHub Desktop.
# Use an official Python runtime as a parent image
FROM python:2.7-slim
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Make port 80 available to the world outside this container
EXPOSE 80
# Define environment variable
ENV NAME World
# Run app.py when the container launches
CMD ["python", "app.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment