diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..81b574e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# Build stage +FROM node:20-slim AS build +WORKDIR /app +COPY package*.json ./ +RUN npm ci +COPY . . +RUN npm run build + +# Runtime stage with Nginx +FROM nginx:alpine AS runner +COPY --from=build /app/dist /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e223750 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + maskable-app: + build: . + ports: + - "8080:80" + environment: + - NODE_ENV=production