jtr-app/Dockerfile
mdnapo c19d98521b
All checks were successful
Build Jtr app test image / test (push) Successful in 37s
Removed --prod flag
2024-10-19 15:01:18 +02:00

15 lines
366 B
Docker

# Build application
FROM node:20-alpine AS build
WORKDIR /app
COPY . .
ARG API_URL="https://api.jtr.local"
ENV JTR_API_URL=${API_URL}
ENV NODE_ENV="production"
RUN npm ci --include=dev
RUN ./node_modules/.bin/ng build
# Serve application
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist/jtr/browser /usr/share/nginx/html
EXPOSE 80