From 90efb6175f75da28bbe5e504ae29307fb97e4a6b Mon Sep 17 00:00:00 2001 From: Thibault Pouch Date: Fri, 27 Feb 2026 10:38:38 +0100 Subject: [PATCH] feat: add Dockerfile, docker-compose.yml, and nginx.conf for containerized deployment --- nest-intra/Dockerfile | 18 ++++++++++++++++++ nest-intra/docker-compose.yml | 6 ++++++ nest-intra/nginx.conf | 9 +++++++++ 3 files changed, 33 insertions(+) create mode 100644 nest-intra/Dockerfile create mode 100644 nest-intra/docker-compose.yml create mode 100644 nest-intra/nginx.conf diff --git a/nest-intra/Dockerfile b/nest-intra/Dockerfile new file mode 100644 index 0000000..e94f5ce --- /dev/null +++ b/nest-intra/Dockerfile @@ -0,0 +1,18 @@ +FROM node:22-alpine AS build + +WORKDIR /app + +COPY package.json package-lock.json ./ +RUN npm ci + +COPY . . +RUN npm run build + +FROM nginx:alpine + +COPY --from=build /app/dist /usr/share/nginx/html +COPY nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 5174 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/nest-intra/docker-compose.yml b/nest-intra/docker-compose.yml new file mode 100644 index 0000000..a6bae3f --- /dev/null +++ b/nest-intra/docker-compose.yml @@ -0,0 +1,6 @@ +services: + nest-intra: + build: . + ports: + - "5174:5174" + restart: unless-stopped diff --git a/nest-intra/nginx.conf b/nest-intra/nginx.conf new file mode 100644 index 0000000..bd355f9 --- /dev/null +++ b/nest-intra/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 5174; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +}