This repository has been archived on 2025-11-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
city-tracker/apps/frontend/Dockerfile
T

19 lines
305 B
Docker

FROM node:20-alpine3.16 AS build
WORKDIR /dist/src/app
RUN npm cache clean --force
COPY . .
RUN npm install
RUN npm run build --prod
FROM nginx:latest AS ngi
COPY --from=build /dist/src/app/dist/frontend /usr/share/nginx/html
# COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80