Skip to content

Commit

Permalink
Load model with an initial ping
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankchhabra committed Aug 15, 2023
1 parent 680ff51 commit c2089b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ COPY --from=build /app/package*.json ./
COPY --from=build /app/next.config.js ./next.config.js
COPY --from=build /app/next-i18next.config.js ./next-i18next.config.js

## Add the wait script to the image
# Add the wait script to the image
COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait /wait

# Add the ping api script to the image
COPY ./ping-api-to-load-model.js ./ping-api-to-load-model.js

# Expose the port the app will run on
EXPOSE 3000

# Start the application after the API is ready
CMD /wait && npm start
CMD /wait && node ping-api-to-load-model.js && npm start

0 comments on commit c2089b4

Please sign in to comment.