Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pado
Asyst Moodle Plugin
Commits
38ed74fc
Commit
38ed74fc
authored
4 months ago
by
Artem Baranovskyi
Browse files
Options
Download
Email Patches
Plain Diff
Image build is optimized.
parent
e5647b2c
Pipeline
#10886
failed with stages
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flask_ml_api/Dockerfile
+7
-3
flask_ml_api/Dockerfile
with
7 additions
and
3 deletions
+7
-3
flask_ml_api/Dockerfile
+
7
-
3
View file @
38ed74fc
FROM
pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runt
im
e
as
base
FROM
debian:bullseye-sl
im
as
base
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
build-essential python3-venv curl
&&
\
build-essential python3-venv curl
&&
\
apt-get clean
&&
\
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
/usr/share/doc /usr/share/man /usr/share/locale
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
&&
\
RUN
pip
install
--no-cache-dir
Flask
&&
\
pip
install
--no-cache-dir
pytorch
&&
\
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
&&
\
pip
install
--no-cache-dir
transformers
&&
\
pip
install
--no-cache-dir
transformers
&&
\
pip
install
--no-cache-dir
pandas
&&
\
pip
install
--no-cache-dir
pandas
&&
\
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
\
rm
-rf
/root/.cache/pip
FROM
base
as
build
FROM
base
as
build
COPY
--from=build /opt/myenv /opt/myenv
WORKDIR
/app
WORKDIR
/app
COPY
. /app
COPY
. /app
...
...
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
Menu
Explore
Projects
Groups
Snippets