add cache for pupetteer
This commit is contained in:
parent
844eac4bcd
commit
6d32767621
@ -9,7 +9,7 @@ WORKDIR leCoffre
|
|||||||
RUN npm install -D prisma@4.11.0
|
RUN npm install -D prisma@4.11.0
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
|
|
||||||
RUN apk update && apk add openssh-client git chromium
|
RUN apk update && apk add openssh-client git
|
||||||
|
|
||||||
COPY id_rsa /root/.ssh/id_rsa
|
COPY id_rsa /root/.ssh/id_rsa
|
||||||
RUN chmod 600 ~/.ssh/id_rsa
|
RUN chmod 600 ~/.ssh/id_rsa
|
||||||
@ -25,6 +25,8 @@ WORKDIR leCoffre
|
|||||||
|
|
||||||
COPY --from=deps leCoffre/node_modules ./node_modules
|
COPY --from=deps leCoffre/node_modules ./node_modules
|
||||||
COPY --from=deps leCoffre/package.json package.json
|
COPY --from=deps leCoffre/package.json package.json
|
||||||
|
COPY --from=deps leCoffre/.cache ./.cache
|
||||||
|
|
||||||
COPY tsconfig.json tsconfig.json
|
COPY tsconfig.json tsconfig.json
|
||||||
COPY src src
|
COPY src src
|
||||||
|
|
||||||
@ -42,6 +44,7 @@ COPY --from=builder --chown=lecoffreuser leCoffre/node_modules ./node_modules
|
|||||||
COPY --from=builder --chown=lecoffreuser leCoffre/dist dist
|
COPY --from=builder --chown=lecoffreuser leCoffre/dist dist
|
||||||
COPY --from=builder --chown=lecoffreuser leCoffre/package.json ./package.json
|
COPY --from=builder --chown=lecoffreuser leCoffre/package.json ./package.json
|
||||||
COPY --from=builder --chown=lecoffreuser leCoffre/src/common/databases ./src/common/databases
|
COPY --from=builder --chown=lecoffreuser leCoffre/src/common/databases ./src/common/databases
|
||||||
|
COPY --from=builder --chown=lecoffreuser leCoffre/.cache ./.cache
|
||||||
|
|
||||||
USER lecoffreuser
|
USER lecoffreuser
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user