chienweichang commited on
Commit
d30e25d
·
verified ·
1 Parent(s): f10bbed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -16,5 +16,5 @@ COPY . .
16
  # 暴露應用運行的端口
17
  EXPOSE 8080
18
 
19
- # 運行應用程序
20
- CMD ["npx", "http-server", "-p", "8080"]
 
16
  # 暴露應用運行的端口
17
  EXPOSE 8080
18
 
19
+ # 運行應用程序並啟用 CORS
20
+ CMD ["npx", "http-server", "-p", "8080", "--cors"]