reverting entrypoint

This commit is contained in:
Santosh Tharu 2024-07-27 19:15:06 +05:45
parent f8aa276c36
commit 0e4026bd8d
2 changed files with 1 additions and 48 deletions

View file

@ -23,8 +23,7 @@ ENV BASE_PATH $BASE_PATH
ENV NEXT_TELEMETRY_DISABLED 1
RUN ALLOWED_FRAME_URLS=/__ENTRYPOINT__ yarn build-docker
ENV ALLOWED_FRAME_URLS=""
RUN yarn build-docker
# Production image, copy all the files and run next
FROM node:18-alpine AS runner
@ -52,10 +51,6 @@ COPY --from=builder /app/scripts ./scripts
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
# Create entrypoint script
COPY entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
USER nextjs
EXPOSE 3000
@ -63,6 +58,4 @@ EXPOSE 3000
ENV HOSTNAME 0.0.0.0
ENV PORT 3000
ENTRYPOINT ["./entrypoint.sh"]
CMD ["yarn", "start-docker"]