From 96b3c427458701dda72c42722a772cb96f4134f0 Mon Sep 17 00:00:00 2001 From: Jason Lubken Date: Thu, 5 Sep 2024 17:31:30 -0400 Subject: [PATCH] Update docker style --- {{cookiecutter.name}}/docker-compose.yml | 2 -- {{cookiecutter.name}}/jupyterlab/dockerfile | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/{{cookiecutter.name}}/docker-compose.yml b/{{cookiecutter.name}}/docker-compose.yml index 711a63c..c6322ad 100644 --- a/{{cookiecutter.name}}/docker-compose.yml +++ b/{{cookiecutter.name}}/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.8" - services: predict: build: diff --git a/{{cookiecutter.name}}/jupyterlab/dockerfile b/{{cookiecutter.name}}/jupyterlab/dockerfile index 44d2024..5c0b958 100644 --- a/{{cookiecutter.name}}/jupyterlab/dockerfile +++ b/{{cookiecutter.name}}/jupyterlab/dockerfile @@ -4,7 +4,7 @@ ARG MINIFORGE_VERSION=4.13.0-1 ARG ROOT_CONTAINER=debian:bullseye-slim -FROM ${ROOT_CONTAINER} as binaries +FROM ${ROOT_CONTAINER} AS binaries SHELL ["/bin/bash", "-o", "pipefail", "-c"] USER root WORKDIR /tmp @@ -34,7 +34,7 @@ ENTRYPOINT ["/usr/bin/tini", "-g", "--"] CMD /bin/bash -FROM binaries as forge +FROM binaries AS forge ARG CONDA ARG MINIFORGE_NAME ARG MINIFORGE_VERSION @@ -59,7 +59,7 @@ RUN \ echo ". ${CONDA_DIR}/etc/profile.d/conda.sh && ${CONDA} activate base" >> ~/.bashrc -FROM forge as jupyterlab +FROM forge AS jupyterlab LABEL name="jupyterlab" RUN \ mkdir -p ~/.jupyter && \