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
d49e35a1
Commit
d49e35a1
authored
Jan 06, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
ade648ae
Pipeline
#10735
failed with stages
in 6 minutes and 43 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
flask_ml_api/Dockerfile
View file @
d49e35a1
...
@@ -8,10 +8,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
...
@@ -8,10 +8,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN
python3
-m
venv /opt/myenv
RUN
python3
-m
venv /opt/myenv
ENV
PATH="/opt/myenv/bin:$PATH"
ENV
PATH="/opt/myenv/bin:$PATH"
#RUN pip install --no-cache-dir Flask matplotlib scikit-learn transformers pandas sentence_transformers && \
# pip install --no-cache-dir --upgrade setuptools wheel && \
# rm -rf /root/.cache/pip
RUN
pip
install
--no-cache-dir
Flask
&&
\
RUN
pip
install
--no-cache-dir
Flask
&&
\
pip
install
--no-cache-dir
matplotlib
&&
\
pip
install
--no-cache-dir
matplotlib
&&
\
pip
install
--no-cache-dir
scikit-learn
&&
\
pip
install
--no-cache-dir
scikit-learn
&&
\
...
@@ -20,6 +16,8 @@ RUN pip install --no-cache-dir Flask && \
...
@@ -20,6 +16,8 @@ RUN pip install --no-cache-dir Flask && \
pip
install
--no-cache-dir
sentence_transformers
&&
\
pip
install
--no-cache-dir
sentence_transformers
&&
\
pip
install
--no-cache-dir
--upgrade
setuptools wheel
pip
install
--no-cache-dir
--upgrade
setuptools wheel
RUN
docker system prune
-a
--volumes
FROM
pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
FROM
pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
COPY
--from=build /opt/myenv /opt/myenv
COPY
--from=build /opt/myenv /opt/myenv
...
...
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