feat: add production docker packaging
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 15:17:44 -04:00
parent 0e4830ace9
commit f1fd007894
6 changed files with 158 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:22-bookworm-slim AS build
WORKDIR /app
COPY package.json package-lock.json ./
COPY apps/web/package.json apps/web/package.json
RUN npm ci
COPY apps/web apps/web
RUN npm run build --workspace=@pokemon-inventory/web
FROM nginx:1.27-alpine
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/apps/web/dist /usr/share/nginx/html
EXPOSE 80