3 Commits

Author SHA1 Message Date
c64d5a96cb fix ci 2026-04-28 19:56:52 +08:00
379bacf023 fix ci 2026-04-28 19:48:40 +08:00
ad2420775e fix ci 2026-04-28 19:48:26 +08:00
3 changed files with 13 additions and 13 deletions

View File

@@ -18,18 +18,6 @@ runs:
with:
entrypoint: "/bin/bash"
args: |
-c 'echo "FROM nginx:alpine" > Dockerfile && \
echo "COPY dist /usr/share/nginx/html" >> Dockerfile && \
echo "RUN cat > /etc/nginx/conf.d/default.conf <<\"EOF\"" >> Dockerfile && \
echo "server {" >> Dockerfile && \
echo " listen 80;" >> Dockerfile && \
echo " root /usr/share/nginx/html;" >> Dockerfile && \
echo " index index.html;" >> Dockerfile && \
echo " location / {" >> Dockerfile && \
echo " try_files $$uri $$uri/ /index.html;" >> Dockerfile && \
echo " }" >> Dockerfile && \
echo "}" >> Dockerfile && \
echo "EOF" >> Dockerfile && \
cat Dockerfile'
-c 'cp "${{ github.action_path }}/nginx.conf" ./ && cp "${{ github.action_path }}/vue.Dockerfile" ./Dockerfile'
- uses: actions/docker-build-push@main

9
nginx.conf Normal file
View File

@@ -0,0 +1,9 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}

3
vue.Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM nginx:alpine
COPY dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf