-
Notifications
You must be signed in to change notification settings - Fork 26
change base image #57
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| ARG REGISTRY_PREFIX= | ||
| FROM ${REGISTRY_PREFIX}python:3.12-slim | ||
| # This is a test file | ||
| ARG AENV_BASE_REGISTRY=docker.io | ||
| ARG AENV_BASE_IMAGE=aenvironment/base | ||
| ARG AENV_BASE_VERSION=0.1.0 | ||
|
|
||
| FROM ${AENV_BASE_REGISTRY}/${AENV_BASE_IMAGE}:${AENV_BASE_VERSION} | ||
|
|
||
| WORKDIR /app | ||
| ENV PYTHONPATH=/app/src | ||
|
|
||
| COPY . . | ||
| RUN python -m pip install --no-cache-dir -r /app/requirements.txt | ||
| RUN python3 -m pip install --no-cache-dir -r /app/requirements.txt | ||
|
Comment on lines
11
to
+12
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To leverage Docker's layer caching more effectively, you should copy I suggest changing these lines to: COPY requirements.txt /app/requirements.txt
RUN python3 -m pip install --no-cache-dir -r /app/requirements.txt
COPY . . |
||
| ENTRYPOINT ["/bin/bash", "-c"] | ||
| CMD ["python3 -m aenv.main /app/src"] | ||
|
Comment on lines
13
to
14
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using the shell form of |
||
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.
This comment appears to be for testing and should be removed to keep the Dockerfile template clean and professional.