From cb1cdb272a95ec4cdd6899568c1e146664ab7ce1 Mon Sep 17 00:00:00 2001 From: trent-gezel Date: Tue, 23 Jul 2024 03:37:30 +1000 Subject: [PATCH] docker is a bitch --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5936666..c4ce402 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,9 @@ RUN corepack enable COPY . /app WORKDIR /app -# Add the .env file -COPY .env /app/.env +ENV DISCORD_TOKEN=DISCORD_TOKEN +ENV API_SERVER=API_SERVER +ENV POSTGRES_URL=POSTGRES_URL FROM base AS prod-deps RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod