diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index c990bcdd..1a0e3c18 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -49,6 +49,8 @@ WORKDIR /app ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 +ENV INFISICAL_ENV prod +ENV INFISICAL_DISABLE_UPDATE_CHECK true # Install infisical RUN apk add --no-cache bash curl && curl -1sLf \ @@ -69,4 +71,4 @@ COPY --from=installer --chown=nextjs:nodejs /app/apps/web/.next/standalone ./ COPY --from=installer --chown=nextjs:nodejs /app/apps/web/.next/static ./apps/web/.next/static COPY --from=installer --chown=nextjs:nodejs /app/apps/web/public ./apps/web/public -CMD ["infisical", "run", "--", "node", "apps/web/server.js"] +CMD ["infisical", "run", "--env", "${INFISICAL_ENV}", "--", "node", "apps/web/server.js"] diff --git a/packages/database/Dockerfile b/packages/database/Dockerfile index 8810bf59..13423f85 100644 --- a/packages/database/Dockerfile +++ b/packages/database/Dockerfile @@ -16,6 +16,8 @@ FROM node:18-alpine3.17 AS runner # set workdir WORKDIR /app ENV NODE_ENV production +ENV INFISICAL_ENV prod +ENV INFISICAL_DISABLE_UPDATE_CHECK true # Install infisical RUN apk add --no-cache bash curl && curl -1sLf \ @@ -33,4 +35,4 @@ COPY --from=builder /app/out/full/ . ENV Mode migrate -ENTRYPOINT ["infisical", "run", "--", "sh", "./packages/database/entrypoint.sh"] +CMD ["infisical", "run", "--env", "${INFISICAL_ENV}", "--", "sh", "./packages/database/entrypoint.sh"]