bot-image-moderation-fe/Dockerfile

10 lines
272 B
Docker

FROM node:23-alpine AS install
RUN mkdir -p /temp/prod
COPY package*.json /temp/prod/
RUN cd /temp/prod && npm install --frozen-lockfile
COPY . /temp/prod/
RUN cd /temp/prod && npm run build
FROM nginx AS release
COPY --from=install /temp/prod/dist /usr/share/nginx/html