fix(docker): 🐛 Runtime public environment
This commit is contained in:
@ -20,7 +20,7 @@ COPY --from=pruner /app/out/full/ .
|
||||
COPY ./apps/${SCOPE}/.env.docker ./apps/${SCOPE}/.env.production
|
||||
COPY ./apps/${SCOPE}/.env.docker ./apps/${SCOPE}/.env.local
|
||||
RUN apt-get -qy update && apt-get -qy install openssl
|
||||
RUN yarn turbo run build --scope=${SCOPE} --include-dependencies --no-deps
|
||||
RUN yarn turbo run build:docker --scope=${SCOPE} --include-dependencies --no-deps
|
||||
RUN find . -name node_modules | xargs rm -rf
|
||||
|
||||
FROM base AS runner
|
||||
@ -36,10 +36,10 @@ COPY --from=builder /app/apps/${SCOPE}/.next/static ./.next/static
|
||||
COPY --from=builder /app/apps/${SCOPE}/.env.docker ./.env.production
|
||||
RUN apt-get -qy update && apt-get -qy install openssl
|
||||
|
||||
COPY entrypoint.sh ./
|
||||
COPY env.sh ./
|
||||
COPY ${SCOPE}-entrypoint.sh ./
|
||||
RUN chmod +x ./${SCOPE}-entrypoint.sh
|
||||
RUN chmod +x ./entrypoint.sh
|
||||
RUN chmod +x ./env.sh
|
||||
ENTRYPOINT ./${SCOPE}-entrypoint.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
Reference in New Issue
Block a user