File size: 559 Bytes
15e67ef
 
 
49dd4ec
91d29dc
 
 
 
15e67ef
 
 
 
 
 
 
 
 
49dd4ec
7b750a0
49dd4ec
91d29dc
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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"]