优化 Docker 容器构建流程
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
dist
|
||||
|
||||
/.drone.yml
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
FROM node:lts-alpine AS runtime
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
COPY package*.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
ENV HOST=0.0.0.0
|
||||
|
||||
Reference in New Issue
Block a user