- optimize build files

This commit is contained in:
oonyeje 2025-02-24 00:17:52 -05:00
parent 64ff5add2c
commit b6ce85b9b3
2 changed files with 6 additions and 6 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
node_modules
.git
.env

View File

@ -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