Add docker build args for env variables

main
trivernis 5 months ago
parent 527a957ce5
commit 6e407dc316
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -1,5 +1,13 @@
FROM docker.io/node:20.15.0-alpine AS builder FROM docker.io/node:20.15.0-alpine AS builder
ARG STRAPI_CMS_URL
ENV STRAPI_CMS_URL $STRAPI_CMS_URL
ARG STRAPI_CMS_API_KEY
ENV STRAPI_CMS_API_KEY $STRAPI_CMS_API_KEY
ENV NODE_ENV production
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN npm ci RUN npm ci

Loading…
Cancel
Save