update shop
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user