jtr-app/Dockerfile
mdnapo c0b7d8c10e
Some checks failed
Build Jtr app test image / test (push) Failing after 36s
Trying npm install dev
2024-10-19 14:56:11 +02:00

15 lines
370 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 install --dev
RUN ./node_modules/.bin/ng build --prod
# 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