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
9f6cb339
Commit
9f6cb339
authored
Jan 05, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
3df46523
Pipeline
#10715
failed with stages
in 6 minutes and 53 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
flask_ml_api/Dockerfile
View file @
9f6cb339
...
@@ -16,6 +16,18 @@ ENV PATH="/opt/myenv/bin:$PATH"
...
@@ -16,6 +16,18 @@ ENV PATH="/opt/myenv/bin:$PATH"
WORKDIR
/app
WORKDIR
/app
COPY
. /app
COPY
. /app
RUN
sudo
docker system prune
-a
-f
--volumes
RUN
sudo
docker container prune
-f
RUN
sudo
docker network prune
-f
RUN
sudo
docker image prune
-a
-f
RUN
sudo
docker builder prune
-f
RUN
sudo
apt-get clean
RUN
sudo rm
-rf
/var/lib/apt/lists/
*
RUN
sudo rm
-rf
/tmp/
*
RUN
sudo
journalctl
--vacuum-time
=
1s
RUN
df
-h
RUN
sudo
docker builder prune
-f
# Setting permissions and cleaning
# Setting permissions and cleaning
RUN
chown
-R
www-data:www-data /app
&&
chmod
-R
755 /app
RUN
chown
-R
www-data:www-data /app
&&
chmod
-R
755 /app
...
...
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