Remove frozen-lockfile from dockerfiles

This commit is contained in:
Adria Navarro 2023-06-07 09:05:34 +01:00
parent ec5780315e
commit d21274ef2b
3 changed files with 4 additions and 4 deletions

View File

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

View File

@ -28,7 +28,7 @@ RUN /bin/bash -e scripts/integrations/oracle/instantclient/linux/x86-64/install.
COPY package.json .
COPY dist/yarn.lock .
RUN yarn install --frozen-lockfile --production=true
RUN yarn install --production=true
# Remove unneeded data from file system to reduce image size
RUN yarn cache clean && apt-get remove -y --purge --auto-remove g++ make python \
&& rm -rf /tmp/* /root/.node-gyp /usr/local/lib/node_modules/npm/node_modules/node-gyp

View File

@ -14,7 +14,7 @@ RUN yarn global add pm2
COPY package.json .
COPY dist/yarn.lock .
RUN yarn install --frozen-lockfile --production=true
RUN yarn install --production=true
# Remove unneeded data from file system to reduce image size
RUN apk del .gyp \
&& yarn cache clean