Update Dockerfile to add a new startup script and adjust permissions for entrypoint and startup scripts, simplifying the command execution process.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m54s

This commit is contained in:
Julien Froidefond
2026-02-20 13:46:42 +01:00
parent 521975db31
commit dc8581f545
2 changed files with 18 additions and 2 deletions

View File

@@ -44,8 +44,9 @@ ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
COPY docker-entrypoint.sh /entrypoint.sh
COPY docker-start.sh /start.sh
RUN apt-get update -y && apt-get install -y gosu && rm -rf /var/lib/apt/lists/* \
&& chmod +x /entrypoint.sh
&& chmod +x /entrypoint.sh /start.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["sh", "-c", "npx prisma migrate deploy && node server.js"]
CMD ["/start.sh"]