Spaces:
Running
Running
MAO
commited on
Commit
·
7072bc0
1
Parent(s):
e8a8433
Fix: Remove -s flag in Dockerfile to enable access to static HTML pages
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -12,4 +12,4 @@ RUN npm run build
|
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
# 使用 npx serve 啟動靜態檔案伺服器
|
| 15 |
-
CMD ["npx", "serve", "
|
|
|
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
# 使用 npx serve 啟動靜態檔案伺服器
|
| 15 |
+
CMD ["npx", "serve", "dist", "-l", "7860"]
|