Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36454aa

Browse files
authored
fix(dogfood/Dockerfile): create /etc/suoders.d/nopasswd instead of COPY (#13900)
1 parentab59460 commit36454aa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎dogfood/Dockerfile‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ SHELL ["/bin/bash", "-c"]
9191
RUN apt-get update && apt-get install --yes ca-certificates
9292

9393
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
94100

95101
# Install packages from apt repositories
96102
ARG DEBIAN_FRONTEND="noninteractive"

‎dogfood/files/etc/sudoers.d/nopasswd‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp