revert and fuck off

This commit is contained in:
2026-03-02 22:16:37 +01:00
parent 96e751e44a
commit 2da488af4f
2 changed files with 13 additions and 15 deletions

View File

@@ -5,23 +5,13 @@ on:
branches: [ "master" ]
jobs:
build-and-push:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install and Build
run: |
npm ci
npm run build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View File

@@ -1,12 +1,20 @@
FROM node:lts-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:stable-alpine
RUN rm -rf /usr/share/nginx/html/*
COPY ./dist /usr/share/nginx/html
COPY --from=builder /app/dist /usr/share/nginx/html
# If you have a custom nginx config for Astro (SPAs/Routing), uncomment this:
# COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]