feat: pass env to docker build

This commit is contained in:
max_richter 2023-11-06 02:33:05 +01:00
parent acf086da13
commit 19a311dc82

View File

@ -7,6 +7,15 @@ FROM base AS prod-deps
RUN pnpm install --prod --frozen-lockfile
FROM base AS build
ARG OPENAI_API_KEY=${OPENAI_API_KEY}
ARG DREAM_API_KEY=${DREAM_API_KEY}
ARG S3_ENDPOINT_URL=${S3_ENDPOINT_URL}
ARG S3_BUCKET_NAME=${S3_BUCKET_NAME}
ARG S3_ACCESS_KEY=${S3_ACCESS_KEY}
ARG S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY}
RUN pnpm install --frozen-lockfile
RUN pnpm run build