From 6d3091281227aa42813bd6d9c8c638d1028cc286 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Sat, 13 Jul 2024 18:13:32 -0400 Subject: [PATCH] Revert "simplified the dockerfile" This reverts commit 78111f010b10dddfcaac4978cc423dc9d222a6b3. --- .dockerignore | 4 ---- Dockerfile | 28 ++++++++++++++++++---------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.dockerignore b/.dockerignore index 5e0514d..5d4b3d1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,7 +5,3 @@ pgdata docker-compose.yml Dockerfile README.md -•git -•github -•gitignore -dist/** \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 1ba123a..d51b65d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,23 +10,31 @@ COPY ./package.json ./yarn.lock ./playwright.config.ts ./ RUN --mount=type=cache,sharing=locked,target=/usr/local/share/.cache/yarn yarn install --network-timeout 10000000 -RUN apt-get update && \ - apt-get install -y \ +RUN apt-get update + +RUN apt-get install -y \ build-essential \ curl \ libssl-dev \ - pkg-config && \ - curl https://sh.rustup.rs -sSf | bash -s -- -y && \ - PATH="/root/.cargo/bin:${PATH}" && \ - cargo install monolith && \ - npx playwright install-deps && \ + pkg-config + +RUN apt-get update + +RUN curl https://sh.rustup.rs -sSf | bash -s -- -y + +ENV PATH="/root/.cargo/bin:${PATH}" + +RUN cargo install monolith + +RUN npx playwright install-deps && \ apt-get clean && \ - yarn cache clean && \ - yarn playwright install + yarn cache clean + +RUN yarn playwright install COPY . . RUN yarn prisma generate && \ yarn build -CMD yarn prisma migrate deploy && yarn start +CMD yarn prisma migrate deploy && yarn start \ No newline at end of file