Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KNIGHT
Asyst Moodle Plugin
Commits
875b282c
Commit
875b282c
authored
Dec 31, 2024
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
764df175
Pipeline
#10606
failed with stage
in 2 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flask_ml_api/Dockerfile
View file @
875b282c
...
@@ -16,7 +16,7 @@ COPY . /app
...
@@ -16,7 +16,7 @@ COPY . /app
# Install dependencies in separate steps to reduce memory usage
# Install dependencies in separate steps to reduce memory usage
RUN
apk add
--no-cache
gcompat
RUN
apk add
--no-cache
gcompat
RUN
/opt/myenv/bin/pip
install
torch
&&
\
RUN
/opt/myenv/bin/pip
install
torch
--index-url
https://download.pytorch.org/whl/cpu
&&
\
rm
-rf
/root/.cache/pip
\
rm
-rf
/root/.cache/pip
\
RUN /opt/myenv/bin/pip
install
Flask
&&
\
RUN /opt/myenv/bin/pip
install
Flask
&&
\
rm
-rf
/root/.cache/pip
rm
-rf
/root/.cache/pip
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment