21 строка
345 B
Docker
21 строка
345 B
Docker
FROM node:16 AS frontend
|
|
|
|
WORKDIR /var/tmp
|
|
|
|
ADD package.json .
|
|
ADD package-lock.json .
|
|
|
|
RUN npm install
|
|
|
|
RUN npx ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points
|
|
|
|
ADD . .
|
|
|
|
RUN npm run build -- -c production
|
|
|
|
|
|
FROM nginx:stable
|
|
|
|
COPY --from=frontend /var/tmp/dist/rpstrackerng14 /usr/share/nginx/html
|
|
|
|
EXPOSE 80 |