PlayChessVsAI / Dockerfile
mzimm003's picture
Update Dockerfile
be8ef18 verified
raw
history blame
748 Bytes
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.8.12
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --upgrade pip
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN git clone https://github.com/mzimm003/Chess /app/Chess
RUN pip install /app/Chess
COPY --chown=user . /app
# CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]
EXPOSE 8501
CMD streamlit run app.py \
--server.headless true \
--server.enableCORS false \
--server.enableXsrfProtection false \
--server.fileWatcherType none