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
2c569758
Commit
2c569758
authored
Jan 09, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
70cb2dfe
Pipeline
#10770
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2c569758
...
@@ -50,7 +50,9 @@ build:
...
@@ -50,7 +50,9 @@ build:
image
:
docker:20.10.16
image
:
docker:20.10.16
services
:
services
:
-
name
:
docker:20.10.16-dind
-
name
:
docker:20.10.16-dind
command
:
[
"
--host=tcp://0.0.0.0:2375"
,
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
command
:
[
"
--host=tcp://docker:2375"
,
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
script
:
script
:
-
docker info
-
docker info
-
docker buildx create --use
-
docker buildx create --use
...
@@ -69,4 +71,4 @@ deploy:
...
@@ -69,4 +71,4 @@ deploy:
-
docker pull 22baar1mst/asyst-nlp-grader:latest
-
docker pull 22baar1mst/asyst-nlp-grader:latest
-
docker run -d 22baar1mst/asyst-nlp-grader:latest
-
docker run -d 22baar1mst/asyst-nlp-grader:latest
only
:
only
:
-
master
-
master
\ No newline at end of file
flask_ml_api/Dockerfile
View file @
2c569758
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
RUN
curl
--proto
'=https'
--tlsv1
.2
-sSf
https://sh.rustup.rs
-o
/usr/local/bin/rustup-init.sh
RUN
curl
--proto
'=https'
--tlsv1
.2
-sSf
https://sh.rustup.rs
-o
/usr/local/bin/rustup-init.sh
...
...
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