Attempt at dynamic env vars, thanx TheBestMoshe
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
b5b0eb5a97
This commit is contained in:
@ -8,10 +8,8 @@ RUN yarn install --frozen-lockfile
|
||||
FROM node:14 as builder
|
||||
|
||||
WORKDIR /app
|
||||
ARG BASE_URL
|
||||
ENV BASE_URL $BASE_URL
|
||||
ARG NEXT_PUBLIC_APP_URL
|
||||
ENV NEXT_PUBLIC_APP_URL $NEXT_PUBLIC_APP_URL
|
||||
ENV BASE_URL=APP_BASE_URL_VAR
|
||||
ENV NEXT_PUBLIC_APP_URL=APP_NEXT_PUBLIC_APP_URL_VAR
|
||||
|
||||
COPY calendso .
|
||||
|
||||
@ -30,7 +28,7 @@ COPY --from=builder /app/next-i18next.config.js ./
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next ./.next
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
COPY scripts scripts
|
||||
COPY scripts scripts
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["/app/scripts/start.sh"]
|
||||
|
Reference in New Issue
Block a user