fix: dockerfile中RUN修改

This commit is contained in:
huan 2024-08-09 10:51:34 +08:00
parent cdb53d2149
commit 0103d89b22

View File

@ -2,11 +2,9 @@ FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN apk add --no-cache python3 make g++ \
&& npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
CMD ["npm", "start"]