Astro_template/Dockerfile
ehab-hassan a1b9635b7f
Some checks failed
GitHub Actions / build (18) (push) Has been cancelled
GitHub Actions / build (20) (push) Has been cancelled
GitHub Actions / build (22) (push) Has been cancelled
GitHub Actions / check (push) Has been cancelled
update template
2025-03-11 12:07:38 +02:00

18 lines
334 B
Docker

FROM node:lts AS base
WORKDIR /app
FROM base AS deps
COPY package*.json ./
RUN npm install
FROM base AS build
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
FROM nginx:stable-alpine AS deploy
COPY --from=build /app/dist /usr/share/nginx/html
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
EXPOSE 8080