crl-demo / Dockerfile
Stearns's picture
Setting python version to 3.9.13
44b2fe5
raw
history blame contribute delete
562 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 that supports both Java and Python
FROM openjdk:slim
COPY --from=python:3.9.13 / /
####
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# RUN chmod 777 /code/*
# The Huggingface Docker Space needs to listen on port 7860
EXPOSE 7860 7860
ENTRYPOINT ["streamlit", "run"]
CMD ["Logic_Demo.py", "--server.port", "7860"]