crl-demo / Dockerfile
bryan-stearns
Tweaking permissions
7b750a0
raw
history blame
511 Bytes
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
### 1. Get Linux
FROM openjdk:slim
COPY --from=python:3.9 / /
####
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
RUN chmod 777 /code/*
# Your Docker Space needs to listen on port 7860
EXPOSE 7860 7860
ENTRYPOINT ["streamlit", "run"]
CMD ["Logic_Demo.py", "--server.port", "7860"]