We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab59460 commit 36454aaCopy full SHA for 36454aa
dogfood/Dockerfile
@@ -91,6 +91,12 @@ SHELL ["/bin/bash", "-c"]
91
RUN apt-get update && apt-get install --yes ca-certificates
92
93
COPY files /
94
+# We used to copy /etc/sudoers.d/* in from files/ but this causes issues with
95
+# permissions and layer caching. Instead, create the file directly.
96
+RUN mkdir -p /etc/sudoers.d && \
97
+ echo 'coder ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/nopasswd && \
98
+ chmod 750 /etc/sudoers.d/ && \
99
+ chmod 640 /etc/sudoers.d/nopasswd
100
101
# Install packages from apt repositories
102
ARG DEBIAN_FRONTEND="noninteractive"
dogfood/files/etc/sudoers.d/nopasswd
0 commit comments