Skip to content

Instantly share code, notes, and snippets.

@joeyism
Last active October 5, 2019 21:46
Show Gist options
  • Save joeyism/166190a0481ad0360c263428edcbfd29 to your computer and use it in GitHub Desktop.
Save joeyism/166190a0481ad0360c263428edcbfd29 to your computer and use it in GitHub Desktop.
FROM python:3.6
# Update Ubuntu instance
RUN apt-get update
# Make `/app` directory, copy all local files into that, and set it as working directory
RUN mkdir -p /app
COPY . /app
WORKDIR /app
# Install dependencies
RUN pip3 install -r requirements.txt
# Sets the environment variable ENV to `development`
ENV ENV=development
# echos $ENV
RUN echo $ENV
# exposes port 8080
EXPOSE 8080
# Launches Flask server
CMD ["python3", "app.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment