feat: predictions
This commit is contained in:
parent
42e7924be9
commit
11be8f351f
42 changed files with 2221 additions and 516 deletions
|
|
@ -40,7 +40,8 @@ COPY --from=builder /app/predictor .
|
|||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p /tmp/grib && \
|
||||
chown -R appuser:appgroup /app /tmp/grib
|
||||
chown -R appuser:appgroup /app && \
|
||||
chmod -R 777 /tmp/grib
|
||||
|
||||
# Switch to non-root user
|
||||
USER appuser
|
||||
|
|
@ -50,7 +51,7 @@ EXPOSE 8080
|
|||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ready || exit 1
|
||||
|
||||
# Run the application
|
||||
CMD ["./predictor"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue