Files
cinny/Dockerfile
T

21 lines
418 B
Docker
Raw Normal View History

## Builder
2024-04-25 00:31:01 +10:00
FROM node:20.12.2-alpine3.18 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.27.4-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