Skip to content

Commit

Permalink
chore: pass env by args in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed Apr 25, 2024
1 parent ace371d commit 62e75f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM node:20-slim AS base

ARG COMMENT_SERVER=${COMMENT_SERVER}
ENV COMMENT_SERVER=${COMMENT_SERVER}
ARG UMAMI_URL=${UMAMI_URL}
ENV UMAMI_URL=${UMAMI_URL}
ARG UMAMI_ID=${UMAMI_ID}
ENV UMAMI_ID=${UMAMI_ID}

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
Expand Down

0 comments on commit 62e75f9

Please sign in to comment.