Add yarn.lock in single image docker

This commit is contained in:
Adria Navarro 2023-06-06 14:34:08 +01:00
parent fe9a220717
commit d1af3f930e
1 changed files with 2 additions and 0 deletions

View File

@ -11,11 +11,13 @@ RUN chmod +x /cleanup.sh
# build server
WORKDIR /app
ADD packages/server .
COPY dist/yarn.lock .
RUN yarn install --frozen-lockfile --production=true && /cleanup.sh
# build worker
WORKDIR /worker
ADD packages/worker .
COPY dist/yarn.lock .
RUN yarn install --frozen-lockfile --production=true && /cleanup.sh
FROM budibase/couchdb