u
File size: 1,231 Bytes
1adae6c
8d225c3
1adae6c
8d225c3
1adae6c
 
55ed61e
8d225c3
1adae6c
8d225c3
1574cf6
8d225c3
83a55cb
 
 
 
 
350f517
d063ffa
cbe6f68
5bde487
7e2f1bd
e68a5b4
2e62637
00dbe64
abfcd92
16a685b
1adae6c
83a55cb
1adae6c
 
abfcd92
1adae6c
 
 
 
 
abfcd92
062abf8
1adae6c
83a55cb
062abf8
1adae6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM python:3.11

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
RUN python3 -m pip install --no-cache-dir --upgrade pip
RUN python3 -m pip install --no-cache-dir --upgrade -r requirements.txt

COPY . .

CMD ["python",  "/code/app.py", "--address", "0.0.0.0", "--port", "7860",  "--allow-websocket-origin", "*"]

# RUN mkdir /.cache
# RUN chmod 777 /.cache
# RUN mkdir .chroma
# RUN chmod 777 .chroma
# # Use the official Ubuntu image.
# Use the official Ubuntu image.
# Use the official Ubuntu image.
# Use the official Ubuntu image.
# Use the official Ubuntu image.
# Use the official Ubuntu image.
# Use the official Ubuntu image.
# 使用官方 Ubuntu 镜像
# 使用官方 Ubuntu 镜像
# 使用基础镜像
# 使用基础镜像
# FROM qiudeng/drissionpage4-ubuntu-webdesktop-novnc:latest

# # 设置工作目录
# WORKDIR /app

# # 创建必要的目录并设置权限
# RUN mkdir -p /etc/supervisor/conf.d /var/log/supervisor && \
#     chmod -R 755 /etc/supervisor/conf.d /var/log/supervisor && \
#     touch /var/log/supervisor/supervisord.log && \
#     chmod 666 /var/log/supervisor/supervisord.log

# 暴露 VNC 和 noVNC 端口
# EXPOSE 5000

# 启动 VNC 服务器和 noVNC
# CMD ["sh", "/startup.sh"]