Last active
October 5, 2019 21:46
-
-
Save joeyism/166190a0481ad0360c263428edcbfd29 to your computer and use it in GitHub Desktop.
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
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