initial
This commit is contained in:
16
apps/web/Dockerfile
Normal file
16
apps/web/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:22-alpine AS deps
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
COPY apps/api/package.json apps/api/package.json
|
||||
COPY apps/web/package.json apps/web/package.json
|
||||
RUN npm install
|
||||
|
||||
FROM deps AS build
|
||||
COPY tsconfig.base.json ./
|
||||
COPY apps/web apps/web
|
||||
RUN npm run build -w @ldap-portal/web
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
COPY apps/web/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/apps/web/dist/web/browser /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user