We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da7d602 commit 2aef3dfCopy full SHA for 2aef3df
1 file changed
src/jekyll-devcontainer/src/.devcontainer/Dockerfile
@@ -3,4 +3,11 @@ LABEL org.opencontainers.image.source=https://github.com/NHSDigital/nhs-notify-r
3
4
COPY packages.txt packages.txt
5
6
-RUN apt-get update && xargs apt-get -y install < packages.txt
+USER root
7
+RUN apt-get update \
8
+ && xargs apt-get -y install --no-install-recommends < packages.txt \
9
+ && apt-get clean \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+# Run the container as a non-root user by default.
13
+USER vscode
0 commit comments