crl-demo / Dockerfile
bryan-stearns
Generalizing jar path to also work on local machine
49dd4ec
raw
history blame
559 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 / /
####
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"]