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
3e0bde72
Commit
3e0bde72
authored
Dec 16, 2024
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
393f9b4f
Pipeline
#10580
failed with stage
in 2 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flask_ml_api/Dockerfile
View file @
3e0bde72
...
...
@@ -16,14 +16,14 @@ COPY . /app
COPY
./asyst /app/asyst
# Install dependencies in separate steps to reduce memory usage
RUN
/opt/myenv/bin/pip
install
torch
\
&&
/opt/myenv/bin/pip
install
Flask
\
&&
/opt/myenv/bin/pip
install
matplotlib
\
&&
/opt/myenv/bin/pip
install
scikit-learn
\
&&
/opt/myenv/bin/pip
install
transformers
\
&&
/opt/myenv/bin/pip
install
pandas
\
&&
/opt/myenv/bin/pip
install
sentence_transformers
\
&&
/opt/myenv/bin/python3
-m
pip
install
--upgrade
setuptools wheel
RUN
/opt/myenv/bin/pip
install
torch
RUN
/opt/myenv/bin/pip
install
Flask
RUN
/opt/myenv/bin/pip
install
matplotlib
RUN
/opt/myenv/bin/pip
install
scikit-learn
RUN
/opt/myenv/bin/pip
install
transformers
RUN
/opt/myenv/bin/pip
install
pandas
RUN
/opt/myenv/bin/pip
install
sentence_transformers
RUN
/opt/myenv/bin/python3
-m
pip
install
--upgrade
setuptools wheel
# Final image
FROM
python:3.10-slim
...
...
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