Skip to content

Instantly share code, notes, and snippets.

@nbertagnolli
Created June 28, 2021 00:07
Show Gist options
  • Save nbertagnolli/b50caae82c850cb4fdd6fcf224354517 to your computer and use it in GitHub Desktop.
Save nbertagnolli/b50caae82c850cb4fdd6fcf224354517 to your computer and use it in GitHub Desktop.
FROM python:3.8
RUN mkdir /ui
COPY requirements.txt /ui
COPY . /ui
WORKDIR /ui
RUN apt-get update && apt-get install -y build-essential libapr1-dev libssl-dev openssh-client
# Install all necessary libraries into a pyenv environment
RUN python3 -m venv /ui.venv
RUN . /ui.venv/bin/activate && pip install -r requirements.txt
# Expose our access port
EXPOSE 8501
CMD . /ui.venv/bin/activate && streamlit run app.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment