Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjieYYY committed Nov 3, 2023
1 parent 52c6df0 commit f5a8d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/autoDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Build
run: npm run build

# 下载static-web-server二进制文件
- name: Download static-web-server binary
run: |
curl -L "https://github.com/static-web-server/static-web-server/releases/download/v2.23.0/static-web-server-v2.23.0-x86_64-unknown-linux-gnu.tar.gz" -o sws.tar.gz
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ FROM gcr.io/distroless/static-debian12
# 设置工作目录
WORKDIR /public

# 从构建上下文中复制静态网页
# 从构建上下文中复制静态网页内容
COPY ./dist/ .

# 从构建步骤中复制static-web-server二进制文件
COPY --from=builder /path/to/sws /usr/local/bin/static-web-server
# 从构建上下文中复制static-web-server二进制文件
COPY sws /usr/local/bin/static-web-server

# 暴露端口80
EXPOSE 80
Expand Down

0 comments on commit f5a8d65

Please sign in to comment.