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
8825c466
Commit
8825c466
authored
Jan 06, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
961941fb
Pipeline
#10743
failed with stages
in 4 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flask_ml_api/Dockerfile
View file @
8825c466
# Этап сборки
FROM
pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
as
build
FROM
pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
as
build
RUN
apt-get update
&&
apt-get
install
-y
curl
RUN
apt-get update
&&
apt-get
install
-y
curl
...
@@ -6,6 +5,8 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh
...
@@ -6,6 +5,8 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh
RUN
sh rustup-init.sh
-y
--default-toolchain
none
RUN
sh rustup-init.sh
-y
--default-toolchain
none
RUN
~/.cargo/bin/rustup toolchain
install
stable
--profile
minimal
--no-self-update
RUN
~/.cargo/bin/rustup toolchain
install
stable
--profile
minimal
--no-self-update
ENV
PATH="$PATH:$HOME/.cargo/bin"
RUN
rustup
--version
RUN
rustup
--version
RUN
cargo
--version
RUN
cargo
--version
...
@@ -37,4 +38,4 @@ RUN chown -R www-data:www-data /app && chmod -R 755 /app
...
@@ -37,4 +38,4 @@ RUN chown -R www-data:www-data /app && chmod -R 755 /app
EXPOSE
5000
EXPOSE
5000
CMD
["/opt/myenv/bin/python", "/app/api.py"]
CMD
["/opt/myenv/bin/python", "/app/api.py"]
\ No newline at end of file
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