Skip to content

Instantly share code, notes, and snippets.

@pycaret
Created May 8, 2020 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pycaret/1ba72057c21df43ad78fa5086d06143f to your computer and use it in GitHub Desktop.
Save pycaret/1ba72057c21df43ad78fa5086d06143f to your computer and use it in GitHub Desktop.
FROM python:3.7
RUN pip install virtualenv
ENV VIRTUAL_ENV=/venv
RUN virtualenv venv -p python3
ENV PATH="VIRTUAL_ENV/bin:$PATH"
WORKDIR /app
ADD . /app
# Install dependencies
RUN pip install -r requirements.txt
# Expose port
EXPOSE 5000
# Run the application:
CMD ["python", "app.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment