File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- ARG CONTRIBUTIONS_API_URL=https://contributions.api.dev.josa.ngo HOST=0.0.0.0 PORT=3000 USER=node
1+ ARG CONTRIBUTIONS_API_URL=https://contributions.api.dev.josa.ngo HOST=0.0.0.0 PORT=3000 USER=node MATOMO_SITE_ID=11
22
33# ##########
44# BUILDER #
@@ -8,14 +8,15 @@ FROM node:16-alpine3.14 as builder
88ARG CONTRIBUTIONS_API_URL
99ARG HOST
1010ARG PORT
11+ ARG MATOMO_SITE_ID
1112
1213# copy build context and install dependencies
1314WORKDIR /workspace
1415COPY . .
1516RUN npm install
1617
1718# Inject the enviromental variables
18- ENV CONTRIBUTIONS_API_URL=${ CONTRIBUTIONS_API_URL} HOST=${ HOST} PORT=${ PORT}
19+ ENV CONTRIBUTIONS_API_URL=$CONTRIBUTIONS_API_URL HOST=$HOST PORT=$PORT MATOMO_SITE_ID=$MATOMO_SITE_ID
1920
2021# build NuxtJS project
2122RUN npm run build:modern
@@ -29,6 +30,7 @@ ARG CONTRIBUTIONS_API_URL
2930ARG HOST
3031ARG PORT
3132ARG USER
33+ ARG MATOMO_SITE_ID
3234
3335# copy builder output to project workdir
3436WORKDIR /app
@@ -38,7 +40,7 @@ COPY --from=builder --chown=${USER}:${USER} /workspace/node_modules /app/node_mo
3840COPY --from=builder --chown=${USER}:${USER} /workspace/package.json /app/
3941
4042# Inject the enviromental variables
41- ENV CONTRIBUTIONS_API_URL=${ CONTRIBUTIONS_API_URL} HOST=${ HOST} PORT=${ PORT}
43+ ENV CONTRIBUTIONS_API_URL=$CONTRIBUTIONS_API_URL HOST=$HOST PORT=$PORT MATOMO_SITE_ID=$MATOMO_SITE_ID
4244
4345# set user context
4446USER ${USER}
You can’t perform that action at this time.
0 commit comments