diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 299d1fd..669a706 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,4 +39,6 @@ jobs: - name: Load image run: | docker load --input /tmp/docswebsite.tar - docker image ls -a \ No newline at end of file + docker image ls -a + cd /home/whes1015 + docker compose up -d \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8e34115..57066fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,4 @@ COPY --from=builder /app . # EXPOSE 1015 # 定義啟動命令 -CMD ["npm", "--", "run", "serve", "--", "--port", "8080", "--host", "localhost"] +CMD ["npm", "run", "serve", "--", "--port", "8080", "--host", "localhost"]