Skip to content

Commit 738000e

Browse files
committed
Fix permissions error when building devcontainer
The apt-get step of the Dockerfile for the devcontainer started to fail with a permissions error. This fixes that error by setting the user to root during the execution of apt-get and subsequent COPY operations. This should be low impact since it only happens in the context of the devcontainer, and the user is set to vscode later in the process.
1 parent f3a7937 commit 738000e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ARG VARIANT="3.3.6"
55
FROM ghcr.io/rails/devcontainer/images/ruby:${VARIANT}
66

7-
# [Optional] Uncomment this section to install additional OS packages.
7+
USER root
88
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
99
&& apt-get -y install --no-install-recommends \
1010
mariadb-client libmariadb-dev \

0 commit comments

Comments
 (0)