Merge pull request #10811 from Budibase/remove_frozen-lockfile

Remove frozen-lockfile from dockerfiles
This commit is contained in:
Adria Navarro 2023-06-07 09:16:01 +01:00 committed by GitHub
commit 515c02d5da
3 changed files with 6 additions and 6 deletions

View File

@ -11,14 +11,14 @@ 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
COPY yarn.lock .
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
COPY yarn.lock .
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