- optimize build files
This commit is contained in:
parent
64ff5add2c
commit
b6ce85b9b3
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
node_modules
|
||||
.git
|
||||
.env
|
||||
@ -1,13 +1,10 @@
|
||||
FROM node:20-alpine as base
|
||||
|
||||
FROM base as builder
|
||||
FROM node:20-alpine as builder
|
||||
|
||||
WORKDIR /home/node/app
|
||||
COPY package*.json ./
|
||||
|
||||
COPY . .
|
||||
RUN npm install yarn
|
||||
RUN yarn install
|
||||
RUN yarn install && yarn cache clean --force && rm -rf /tmp/*
|
||||
COPY . .
|
||||
# RUN yarn build
|
||||
|
||||
# FROM base as runtime
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user