add skip env validation
This commit is contained in:
parent
92d18426b9
commit
c487bbe003
10
Dockerfile
10
Dockerfile
@ -19,22 +19,14 @@ RUN npm install
|
||||
# PRODUCTION BUILDER
|
||||
#################################################
|
||||
FROM base AS builder-production
|
||||
ARG DATABASE_URL
|
||||
ARG NEXTAUTH_URL
|
||||
ARG NEXTAUTH_SECRET
|
||||
ARG JWT_SECRET
|
||||
|
||||
ENV DATABASE_URL ${DATABASE_URL}
|
||||
ENV NEXTAUTH_URL ${NEXTAUTH_URL}
|
||||
ENV NEXTAUTH_SECRET ${NEXTAUTH_SECRET}
|
||||
ENV JWT_SECRET ${JWT_SECRET}
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
RUN SKIP_ENV_VALIDATION=1 npm run build
|
||||
|
||||
#################################################
|
||||
# PRODUCTION RUNNER
|
||||
|
@ -5,11 +5,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
- NEXTAUTH_SECRET=arbitrary
|
||||
- JWT_SECRET=arbitrary
|
||||
- NEXTAUTH_URL=http://arbitrary.com
|
||||
- DATABASE_URL=http://arbitrary.com
|
||||
- RUNNER_ENV=production
|
||||
- RUNNER_ENV
|
||||
restart: always
|
||||
ports:
|
||||
- "1234:3000"
|
||||
|
Loading…
x
Reference in New Issue
Block a user