astro-open-source-quebec/Dockerfile

21 lines
293 B
Docker
Raw Normal View History

2024-12-27 02:06:36 -05:00
FROM node:22-alpine AS build
WORKDIR /app
COPY . .
RUN yarn
RUN yarn build
FROM nginx:alpine AS runtime
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]