myvps-site/Dockerfile
opencode 84c582337a
Some checks failed
deploy-myvps-site / deploy (push) Failing after 0s
Add my-vps presentation site with public/restricted split
2026-11-22 23:19:25 +00:00

21 lines
482 B
Docker

FROM docker.io/library/node:22-alpine AS build
WORKDIR /app
ENV ASTRO_TELEMETRY_DISABLED=1
ENV NPM_CONFIG_UPDATE_NOTIFIER=false
COPY package.json package-lock.json ./
RUN npm ci --no-audit --no-fund
COPY astro.config.mjs tsconfig.json ./
COPY src ./src
COPY public ./public
RUN npx astro build
FROM docker.io/library/nginx:1.27-alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]