adriano2005 commited on
Commit
d4fca69
·
verified ·
1 Parent(s): 5289e45

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -16
Dockerfile CHANGED
@@ -1,16 +1,6 @@
1
- FROM node:20
2
-
3
- # Install http-server to serve the static site
4
- RUN npm install -g http-server
5
-
6
- # Build the app
7
- WORKDIR /usr/app
8
- COPY ./ /usr/app
9
- RUN npm install
10
- RUN npm run sources && npm run build
11
-
12
- # Expose port 7860
13
- EXPOSE 7860
14
-
15
- # Serve the static site from the /usr/app/build directory on host 0.0.0.0 and port 7860
16
- CMD ["http-server", "/usr/app/build", "-a", "0.0.0.0", "-p", "7860"]
 
1
+ # 直接使用官方构建好的镜像,避免在 Spaces 上编译
2
+ FROM jlesage/firefox:latest
3
+
4
+ EXPOSE 5800
5
+ # 使用基础镜像的启动脚本
6
+ CMD ["/init"]