From 9bb0dcd73fc835b731a865c5086129a74b2114b9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 2 Sep 2022 18:44:29 +0000 Subject: [PATCH] Testing different Dockerfile --- Dockerfile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31a2df1f0..2d83d38b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM node:18-alpine3.16 as build +FROM node:18-slim as build WORKDIR /app -RUN apk add --no-cache curl +RUN apt update && apt -y install curl RUN curl -sL https://unpkg.com/@pnpm/self-installer | node COPY . . @@ -9,21 +9,11 @@ RUN pnpm install RUN pnpm build # Production build -FROM node:18-alpine3.16 +FROM node:18-slim WORKDIR /app ENV NODE_ENV production -ARG TARGETPLATFORM -# ENV PRISMA_QUERY_ENGINE_BINARY=/app/prisma-engines/query-engine \ -# PRISMA_MIGRATION_ENGINE_BINARY=/app/prisma-engines/migration-engine \ -# PRISMA_INTROSPECTION_ENGINE_BINARY=/app/prisma-engines/introspection-engine \ -# PRISMA_FMT_BINARY=/app/prisma-engines/prisma-fmt \ -# PRISMA_CLI_QUERY_ENGINE_TYPE=binary \ -# PRISMA_CLIENT_ENGINE_TYPE=binary - -# COPY --from=coollabsio/prisma-engine:3.15 /prisma-engines/query-engine /prisma-engines/migration-engine /prisma-engines/introspection-engine /prisma-engines/prisma-fmt /app/prisma-engines/ - -RUN apk add --no-cache git git-lfs openssh-client curl jq cmake sqlite openssl psmisc +RUN apt update && apt -y install git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3 && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/ RUN curl -sL https://unpkg.com/@pnpm/self-installer | node RUN mkdir -p ~/.docker/cli-plugins/