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 \