Skip to content

Commit

Permalink
Merge pull request #10811 from Budibase/remove_frozen-lockfile
Browse files Browse the repository at this point in the history
Remove frozen-lockfile from dockerfiles
  • Loading branch information
adrinr committed Jun 7, 2023
2 parents ad9ec7e + 8235d3c commit b2df65e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions hosting/single/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2df65e

Please sign in to comment.