Remove frozen-lockfile from dockerfiles
This commit is contained in:
parent
ec5780315e
commit
d21274ef2b
|
@ -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
|
||||
|
|
|
@ -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