Polos-Demo / Dockerfile
yuwd's picture
update
a005919
raw
history blame contribute delete
613 Bytes
FROM --platform=linux/amd64 python:3.9.2-slim
RUN apt-get update && apt-get install -y gcc g++
WORKDIR /app
COPY ./pyproject.toml /app/pyproject.toml
COPY ./poetry.lock /app/poetry.lock
RUN pip3 install poetry
RUN poetry config virtualenvs.create false
RUN poetry install
# User
RUN useradd -m -u 1000 user
USER user
ENV HOME /home/user
ENV PATH $HOME/.local/bin:$PATH
WORKDIR $HOME
RUN mkdir app
WORKDIR $HOME/app
COPY . $HOME/app
EXPOSE 8501
CMD streamlit run app.py \
--server.headless true \
--server.enableCORS false \
--server.enableXsrfProtection false \
--server.fileWatcherType none