File size: 670 Bytes
1eb4027
 
 
f4914a5
1e42334
 
1eb4027
1e42334
 
6f6ead4
 
 
 
1eb4027
 
 
 
 
 
 
 
6f6ead4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM ubuntu:20.04
ENV OPENAI_API_KEY=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
ENV CODE=123456

# (可选)暴露所需端口,如果基础镜像已经暴露了所需端口,则这一步不是必需的
EXPOSE 3000
# RUN docker run -d -p 3000:3000 \
#    -e OPENAI_API_KEY=sk-xxxx \
#    -e CODE=页面访问密码 \
#    yidadaa/chatgpt-next-web
# WORKDIR /code

# COPY ./requirements.txt /code/requirements.txt

# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# COPY . .

CMD ["python", "./main.py"]