Update: Dockerfile

This commit is contained in:
dx-tan 2024-05-16 17:38:50 +07:00
parent ba595bcd58
commit 8d4a7da23a

View File

@ -2,7 +2,7 @@ FROM node:21-alpine AS build
WORKDIR /app/
COPY --chown=node:node package*.json ./
RUN npm install -g npm@10.4.0 && npm install
RUN yarn
COPY --chown=node:node . .
RUN npm run build
RUN npm cache clean --force