Skip to content

Instantly share code, notes, and snippets.

@stevenkolawole
Created August 5, 2021 17:57
Show Gist options
  • Save stevenkolawole/b409b9d3d2192c6e326f2627e05618cb to your computer and use it in GitHub Desktop.
Save stevenkolawole/b409b9d3d2192c6e326f2627e05618cb to your computer and use it in GitHub Desktop.
# Grab the Python base image
FROM python:3.8
# Install python and pip
COPY requirements.txt ./requirements.txt
# Install dependencies
RUN pip install -r requirements.txt
# Add our code
COPY . /app
WORKDIR /app
# Run the image
CMD streamlit run --server.port $PORT app.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment