File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
ARG VARIANT="3.3.6"
5
5
FROM ghcr.io/rails/devcontainer/images/ruby:${VARIANT}
6
6
7
- USER root
8
- RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9
- && apt-get -y install --no-install-recommends \
7
+ RUN sudo apt-get update && export DEBIAN_FRONTEND=noninteractive \
8
+ && sudo apt-get -y install --no-install-recommends \
10
9
mariadb-client libmariadb-dev \
11
10
postgresql-client postgresql-contrib libpq-dev \
12
11
ffmpeg mupdf mupdf-tools libvips-dev poppler-utils \
@@ -32,7 +31,7 @@ COPY railties/railties.gemspec /tmp/rails/railties/
32
31
COPY tools/releaser/releaser.gemspec /tmp/rails/tools/releaser/
33
32
# Docker does not support COPY as users other than root. So we need to chown this dir so we
34
33
# can bundle as vscode user and then remove the tmp dir
35
- RUN chown -R vscode:vscode /tmp/rails
34
+ RUN sudo chown -R vscode:vscode /tmp/rails
36
35
USER vscode
37
36
RUN cd /tmp/rails \
38
37
&& /home/vscode/.rbenv/shims/bundle install \
You can’t perform that action at this time.
0 commit comments