Files
studio-2025/Dockerfile
2025-07-02 14:12:27 +02:00

15 lines
364 B
Docker

# Use a Node image to build the Astro project
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
COPY . .
RUN npm install
RUN npm run build
# Use Nginx to serve the static site
FROM nginx:alpine AS production
COPY --from=builder /app/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf
EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]