Merge pull request #10811 from Budibase/remove_frozen-lockfile
Remove frozen-lockfile from dockerfiles
This commit is contained in:
commit
515c02d5da
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue