-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix docker image build #26
Conversation
Uxio0
commented
Nov 28, 2023
- Remove not needed dependencies
- Add gunicorn missing configuration
- Organize .env samples
- Update README.md
- Make sure swagger works
- Closes Add swagger #4
docker compose up | ||
``` | ||
|
||
Then go to http://localhost:8000 |
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'm thinking that we are mixing configuration and execution here, could we separate them in different sections?
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.
You are right
@@ -38,4 +38,4 @@ COPY --chown=python:python . . | |||
# Use numeric ids so kubernetes identifies the user correctly | |||
USER 999:999 | |||
|
|||
RUN DJANGO_SETTINGS_MODULE=config.settings.production DJANGO_DOT_ENV_FILE=.env.tracing.sample python manage.py collectstatic --noinput | |||
RUN DJANGO_SETTINGS_MODULE=config.settings.production DJANGO_DOT_ENV_FILE=.env.sample python manage.py collectstatic --noinput |
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 suppose that here should be .env instead .env.sample.
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.
No, as this is only a placeholder as it needs a file to exist, so it doesn't matter which one, but good catch
- Update dockerignore - Remove not needed dependencies - Add gunicorn missing configuration - Organize .env samples - Update README.md - Make sure swagger works - Closes #4