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
KNIGHT
Asyst Moodle Plugin
Commits
5cb4819f
Commit
5cb4819f
authored
7 months ago
by
Artem Baranovskyi
Browse files
Options
Download
Email Patches
Plain Diff
Image build is optimized.
parent
d37c4551
Pipeline
#10733
failed with stages
in 11 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flask_ml_api/Dockerfile
+2
-5
flask_ml_api/Dockerfile
with
2 additions
and
5 deletions
+2
-5
flask_ml_api/Dockerfile
+
2
-
5
View file @
5cb4819f
FROM
pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
FROM
pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
FROM
pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
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
&&
\
build-essential python3-venv
&&
\
...
@@ -13,11 +12,9 @@ WORKDIR /app
...
@@ -13,11 +12,9 @@ WORKDIR /app
COPY
. /app
COPY
. /app
RUN
pip
install
--no-cache-dir
Flask matplotlib scikit-learn transformers pandas sentence_transformers
&&
\
RUN
pip
install
--no-cache-dir
Flask matplotlib scikit-learn transformers pandas sentence_transformers
&&
\
pip
install
--no-cache-dir
--upgrade
setuptools wheel
pip
install
--no-cache-dir
--upgrade
setuptools wheel
&&
\
rm
-rf
/root/.cache/pip
RUN
rm
-rf
/root/.cache/pip
# Настройка прав
RUN
chown
-R
www-data:www-data /app
&&
chmod
-R
755 /app
RUN
chown
-R
www-data:www-data /app
&&
chmod
-R
755 /app
EXPOSE
5000
EXPOSE
5000
...
...
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