Spaces:
Sleeping
Sleeping
chienweichang
commited on
Update Dockerfile
Browse files- 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"]
|