Files
cinny/Dockerfile
T

21 lines
414 B
Docker
Raw Normal View History

## Builder
2026-02-22 18:15:23 +11:00
FROM node:24.13.1-alpine AS builder
WORKDIR /src
COPY .npmrc package.json package-lock.json /src/
2022-01-30 16:28:38 +01:00
RUN npm ci
2022-03-10 18:23:54 +05:30
COPY . /src/
2023-03-29 21:57:05 +11:00
ENV NODE_OPTIONS=--max_old_space_size=4096
2022-01-30 16:28:38 +01:00
RUN npm run build
## App
FROM nginx:1.29.8-alpine
COPY --from=builder /src/dist /app
COPY --from=builder /src/docker-nginx.conf /etc/nginx/conf.d/default.conf
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html