Files
SteelBase/Dockerfile

15 lines
302 B
Docker

# Build stage
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --frozen-lockfile
COPY . .
RUN npm run build
# Production stage
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
# Nginx default listens on 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]