This commit is contained in:
xRain 2023-08-22 12:01:39 +08:00
parent 2fe411b051
commit e00ee5d81a

View File

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