Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pado
Asyst Moodle Plugin
Commits
aee745d1
Commit
aee745d1
authored
5 months ago
by
Artem Baranovskyi
Browse files
Options
Download
Email Patches
Plain Diff
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
Showing
1 changed file
flask_ml_api/Dockerfile
+12
-9
flask_ml_api/Dockerfile
with
12 additions
and
9 deletions
+12
-9
flask_ml_api/Dockerfile
+
12
-
9
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
...
...
This diff is collapsed.
Click to expand it.
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