Skip to content

Instantly share code, notes, and snippets.

@stevenkolawole
Created August 5, 2021 18:24
Show Gist options
  • Save stevenkolawole/81dfb7ff766a4187a32a3a5868e0875d to your computer and use it in GitHub Desktop.
Save stevenkolawole/81dfb7ff766a4187a32a3a5868e0875d to your computer and use it in GitHub Desktop.
# Grab the Python slim image
FROM python:3.8-slim
# Install python and pip
COPY requirements.txt ./requirements.txt
# Install dependencies
RUN pip install --no-cache-dir -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