From 57db50635d39ea91153d4eee4a054be9a1ecfa56 Mon Sep 17 00:00:00 2001 From: Marcio Granzotto Date: Sat, 26 Sep 2020 18:24:23 -0300 Subject: [PATCH] Hardcode Nightscout version --- .devcontainer/devcontainer.json | 3 ++- nightscout/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 20194da..38e0ed0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,7 +18,8 @@ "extensions": [ "exiasr.hadolint", "omartawfik.github-actions-vscode", - "mrmlnc.vscode-remark" + "mrmlnc.vscode-remark", + "ms-azuretools.vscode-docker" ] // Use 'forwardPorts' to make a list of ports inside the container available locally. diff --git a/nightscout/Dockerfile b/nightscout/Dockerfile index 91d33d6..bc84fa5 100644 --- a/nightscout/Dockerfile +++ b/nightscout/Dockerfile @@ -10,6 +10,7 @@ COPY . /opt WORKDIR /opt/app ARG BUILD_ARCH=amd64 +ARG NIGHTSCOUT_VERSION=14.0.4 # hadolint ignore=DL3008 RUN \ URL="http://archive.ubuntu.com/ubuntu/" \ @@ -45,7 +46,7 @@ RUN \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN git clone git://github.com/nightscout/cgm-remote-monitor.git /opt/app +RUN git clone --depth 1 --branch ${NIGHTSCOUT_VERSION} git://github.com/nightscout/cgm-remote-monitor.git /opt/app RUN npm install \ && npm run postinstall \