Skip to content

Instantly share code, notes, and snippets.

@mengwangk
Created December 29, 2020 06:33
Show Gist options
  • Save mengwangk/17ee92afc95dacbe8141ff97faf597c3 to your computer and use it in GitHub Desktop.
Save mengwangk/17ee92afc95dacbe8141ff97faf597c3 to your computer and use it in GitHub Desktop.
Dockerfile - frontend
FROM python:3.8-slim
RUN mkdir /streamlit
COPY requirements.txt /streamlit
WORKDIR /streamlit
RUN pip install -r requirements.txt
COPY . /streamlit
EXPOSE 8501
RUN apt-get update -y && apt-get install nodejs npm -y
RUN npm i -g nodemon
COPY ./start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment