Files
Aquarium/Dockerfile
T

13 lines
274 B
Docker

# Stage 1: Build
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
# Use default nginx config (serves /usr/share/nginx/html on port 80)