item-atlas/apps/admin/Dockerfile

14 lines
408 B
Docker

FROM node:24-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --no-audit --no-fund
COPY . .
ARG VITE_OIDC_URL=https://api-atlas.tutudog.com/auth
ARG VITE_OIDC_REALM=item-atlas
RUN npm run build
FROM nginx:1.31-alpine
ENV ATLAS_GATEWAY_URL=http://gateway:8080
COPY nginx.conf.template /etc/nginx/templates/default.conf.template
COPY --from=build /app/dist /usr/share/nginx/html