mirror of
https://gitlab.com/stilobique/blender-docker.git
synced 2026-05-27 20:27:47 +02:00
Fore clear temporary docker container/image.
Change ubuntu image used
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu:latest AS blender
|
||||
FROM ubuntu:22.04 AS blender
|
||||
|
||||
# Setup all software version request
|
||||
ARG b3d_vs_major=2.90
|
||||
@@ -40,7 +40,7 @@ RUN mkdir /opt/blender-git/ && cd /opt/blender-git/ \
|
||||
&& make
|
||||
|
||||
# Setup a Multistage optimisation
|
||||
FROM ubuntu:latest
|
||||
FROM ubuntu:22.04
|
||||
COPY --from=blender /opt/blender-git/build_linux/bin /opt/blender
|
||||
ARG b3d_vs_major
|
||||
ENV B3D_ADDON_PATH "$HOME/.config/blender/${b3d_vs_major}/scripts/addons"
|
||||
|
||||
@@ -44,7 +44,7 @@ def build_docker(b3d_version: (str, str), latest: bool = False):
|
||||
completed_tag_name = f'{docker_repo}:{args["b3d_vs_major"]}.{args["b3d_vs_minor"]}'
|
||||
|
||||
print('2 -> Build from image file')
|
||||
client.images.build(path=os.getcwd(), buildargs=args, tag=completed_tag_name)
|
||||
client.images.build(path=os.getcwd(), buildargs=args, tag=completed_tag_name, rm=True, forcerm=True)
|
||||
|
||||
print('3 -> Push the new images')
|
||||
client.images.push(repository=docker_repo, tag=tag)
|
||||
|
||||
Reference in New Issue
Block a user