-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerise our ModelScan application #1621
Dockerise our ModelScan application #1621
Conversation
lib/modelscan_api/Dockerfile.dev
Outdated
@@ -0,0 +1,19 @@ | |||
FROM python:3.12-slim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider using a bullseye image rather than a slim one as we do here? https://github.com/gchq/Bailo/blob/main/backend/Dockerfile#L2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had not. It looks like 3.12-slim
resolves to 3.12-slim-bookend
which is one major Debian release ahead of bullseye
. I'm happy to downgrade to 3.12-slim-bullseye
as there are no meaningful functionality changes.
Is there a reason we don't use the slim
docker image for the docs build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth fixing the example return objects in the Swagger docs
Write a Dockerfile for the REST Model Scan application.
The Dockerfile should expose the relevant ports.
The Image should be added to the dev docker compose build.