fix: dockerfile中RUN修改
This commit is contained in:
parent
cdb53d2149
commit
0103d89b22
@ -2,11 +2,9 @@ FROM node:18-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
RUN apk add --no-cache python3 make g++ \
|
||||||
RUN npm install
|
&& npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 3000
|
CMD ["npm", "start"]
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user