Created
June 28, 2021 00:07
-
-
Save nbertagnolli/b50caae82c850cb4fdd6fcf224354517 to your computer and use it in GitHub Desktop.
This file contains 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.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