Skip to content

Commit

Permalink
forgot to add env to infisical cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Huskydog9988 committed Dec 23, 2023
1 parent 5571f48 commit c9673b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"]
4 changes: 3 additions & 1 deletion packages/database/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"]

0 comments on commit c9673b8

Please sign in to comment.