16 lines
382 B
Docker
16 lines
382 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
|
|
RUN node_modules/.bin/ng build --prod
|
|
# RUN npm run 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 |