crl-demo / Dockerfile
bryan-stearns
Setting Dockerfile for app
91d29dc
raw
history blame
488 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 . .
# Your Docker Space needs to listen on port 7860
EXPOSE 7860 7860
ENTRYPOINT ["streamlit", "run"]
CMD ["Logic_Demo.py", "--server.port", "7860"]