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
940e64b7
Commit
940e64b7
authored
5 months ago
by
Artem Baranovskyi
Browse files
Options
Download
Email Patches
Plain Diff
Image build is optimized.
parent
2e158f9a
Pipeline
#10738
failed with stages
in 4 minutes and 33 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
flask_ml_api/Dockerfile
+2
-2
flask_ml_api/Dockerfile
with
2 additions
and
2 deletions
+2
-2
flask_ml_api/Dockerfile
+
2
-
2
View file @
940e64b7
#FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime as build
FROM
pytorch/pytorch:1.10.0-cuda11.
7
-cudnn8-runtime
as
build
FROM
pytorch/pytorch:1.10.0-cuda11.
3
-cudnn8-runtime
as
build
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
build-essential python3-venv
&&
\
...
...
@@ -23,7 +23,7 @@ RUN pip install --no-cache-dir Flask && \
RUN
rm
-rf
/root/.cache/pip
FROM
pytorch/pytorch:1.10.0-cuda11.
7
-cudnn8-runtime
FROM
pytorch/pytorch:1.10.0-cuda11.
3
-cudnn8-runtime
COPY
--from=build /opt/myenv /opt/myenv
ENV
PATH="/opt/myenv/bin:$PATH"
...
...
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