remove cache copy
This commit is contained in:
parent
6d32767621
commit
f307fa560b
@ -1,15 +1,14 @@
|
||||
# Install dependencies only when needed
|
||||
FROM node:19-alpine AS deps
|
||||
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser
|
||||
|
||||
WORKDIR leCoffre
|
||||
|
||||
RUN npm install -D prisma@4.11.0
|
||||
COPY package.json ./
|
||||
|
||||
RUN apk update && apk add openssh-client git
|
||||
# ENV PUPPETEER_CACHE_DIR=~/leCoffre/.cache/puppeteer
|
||||
# ENV PUPPETEER_SKIP_DOWNLOAD=false
|
||||
|
||||
COPY id_rsa /root/.ssh/id_rsa
|
||||
RUN chmod 600 ~/.ssh/id_rsa
|
||||
@ -25,7 +24,7 @@ WORKDIR leCoffre
|
||||
|
||||
COPY --from=deps leCoffre/node_modules ./node_modules
|
||||
COPY --from=deps leCoffre/package.json package.json
|
||||
COPY --from=deps leCoffre/.cache ./.cache
|
||||
#COPY --from=deps leCoffre/.cache ./.cache
|
||||
|
||||
COPY tsconfig.json tsconfig.json
|
||||
COPY src src
|
||||
@ -44,7 +43,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/package.json ./package.json
|
||||
COPY --from=builder --chown=lecoffreuser leCoffre/src/common/databases ./src/common/databases
|
||||
COPY --from=builder --chown=lecoffreuser leCoffre/.cache ./.cache
|
||||
#COPY --from=builder --chown=lecoffreuser leCoffre/.cache ./.cache
|
||||
|
||||
USER lecoffreuser
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user