Pass env vars to build stage for admin dashboard
This commit is contained in:
parent
8f5fe4ab2f
commit
3197f7bf1a
1 changed files with 8 additions and 0 deletions
|
|
@ -3,6 +3,14 @@ WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci --legacy-peer-deps
|
RUN npm ci --legacy-peer-deps
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
ARG STORE_CORS
|
||||||
|
ARG ADMIN_CORS
|
||||||
|
ARG AUTH_CORS
|
||||||
|
ARG DATABASE_URL
|
||||||
|
ARG REDIS_URL
|
||||||
|
ARG JWT_SECRET
|
||||||
|
ARG COOKIE_SECRET
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue