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
aee745d1
Commit
aee745d1
authored
Jan 06, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
940e64b7
Pipeline
#10739
failed with stages
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flask_ml_api/Dockerfile
View file @
aee745d1
...
@@ -12,15 +12,18 @@ ENV PATH="/opt/myenv/bin:$PATH"
...
@@ -12,15 +12,18 @@ ENV PATH="/opt/myenv/bin:$PATH"
WORKDIR
/app
WORKDIR
/app
COPY
. /app
COPY
. /app
RUN
pip
install
--no-cache-dir
Flask
&&
\
RUN
pip
install
--no-cache-dir
Flask matplotlib scikit-learn transformers pandas sentence_transformers
&&
\
pip
install
--no-cache-dir
matplotlib
&&
\
pip
install
--no-cache-dir
--upgrade
setuptools wheel
&&
\
pip
install
--no-cache-dir
scikit-learn
&&
\
rm
-rf
/root/.cache/pip
\
pip
install
--no-cache-dir
transformers
&&
\
pip
install
--no-cache-dir
pandas
&&
\
#RUN pip install --no-cache-dir Flask && \
pip
install
--no-cache-dir
sentence_transformers
&&
\
# pip install --no-cache-dir matplotlib && \
pip
install
--no-cache-dir
--upgrade
setuptools wheel
# pip install --no-cache-dir scikit-learn && \
# pip install --no-cache-dir transformers && \
RUN
rm
-rf
/root/.cache/pip
# pip install --no-cache-dir pandas && \
# pip install --no-cache-dir sentence_transformers && \
# pip install --no-cache-dir --upgrade setuptools wheel
#RUN rm -rf /root/.cache/pip
FROM
pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
FROM
pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
...
...
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