update shop

This commit is contained in:
2025-12-17 18:32:46 +02:00
parent d8c6de1f2b
commit 56f9da6966
9 changed files with 130 additions and 9 deletions

View File

@@ -22,10 +22,12 @@ RUN mkdir -p /app/instance /app/assets
# Default port
ENV FLET_PORT=8080
EXPOSE 8080
# Copy the entrypoint script and make it executable
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
# Health check
HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD curl -fsS http://127.0.0.1:8080/ || exit 1
# Expose both ports (Flet 8080 and Flask 9000)
EXPOSE 8080 9000
# Run entrypoint to create superuser and start the app
ENTRYPOINT ["sh", "-c", "python create_super_user.py && python main.py"]
# Use the script to start the container
ENTRYPOINT ["./entrypoint.sh"]