This commit is contained in:
xRain 2023-08-22 11:59:46 +08:00
parent 0f1e350958
commit 2fe411b051

View File

@ -6,15 +6,17 @@ runs:
steps: steps:
- uses: docker://node:18 - uses: docker://node:18
with: with:
entrypoint: '/bin/sh -c' entrypoint: '/bin/bash'
args: | args: |
-c
npm install npm install
npm run build -- --outputPath=dist npm run build -- --outputPath=dist
- uses: docker://docker:git - uses: docker://docker:git
with: with:
entrypoint: '/bin/sh -c' entrypoint: '/bin/sh'
args: | args: |
-c
echo "FROM nginx:alpine" > Dockerfile echo "FROM nginx:alpine" > Dockerfile
echo "COPY dist /usr/share/nginx/html" >> Dockerfile echo "COPY dist /usr/share/nginx/html" >> Dockerfile
echo "WORKDIR /usr/share/nginx/html/" >> Dockerfile echo "WORKDIR /usr/share/nginx/html/" >> Dockerfile