fix: add .dockerignore and optimize build flags for VPS memory constraints
This commit is contained in:
13
.dockerignore
Normal file
13
.dockerignore
Normal file
@@ -0,0 +1,13 @@
|
||||
node_modules
|
||||
dist
|
||||
.git
|
||||
.vscode
|
||||
*.log
|
||||
.env
|
||||
.env.local
|
||||
.vercel
|
||||
ios
|
||||
android
|
||||
out
|
||||
build
|
||||
tmp
|
||||
@@ -10,7 +10,7 @@ RUN apk update && apk upgrade --no-cache
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install --legacy-peer-deps
|
||||
RUN npm install --legacy-peer-deps --no-audit --no-fund
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user