Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit b859860

Browse files
authored
remove --dry-run option in coder installer, add install fixuid command
1 parent dd6f825 commit b859860

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,19 @@ ENV PATH /home/linuxbrew/.linuxbrew/bin:${PATH}
131131
USER coder
132132
RUN brew install gh glab doctl duf \
133133
&& curl -fsSL https://unix.secman.dev | bash \
134-
&& curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
134+
&& curl -fsSL https://code-server.dev/install.sh | sh
135135
RUN wget https://raw.githubusercontent.com/cdr/code-server/main/ci/release-image/entrypoint.sh && sudo chmod 755 entrypoint.sh \
136136
&& sudo mv entrypoint.sh /usr/bin/entrypoint.sh
137137

138+
### install fixuid ###
139+
USER root
140+
RUN ARCH="$(dpkg --print-architecture)" && \
141+
curl -fsSL "https://github.com/boxboat/fixuid/releases/download/v0.5/fixuid-0.5-linux-$ARCH.tar.gz" | tar -C /usr/local/bin -xzf - && \
142+
chown root:root /usr/local/bin/fixuid && \
143+
chmod 4755 /usr/local/bin/fixuid && \
144+
mkdir -p /etc/fixuid && \
145+
printf "user: coder\ngroup: coder\n" > /etc/fixuid/config.yml
146+
138147
### micro cli editor ###
139148
USER root
140149
RUN curl https://getmic.ro | bash && \

0 commit comments

Comments
 (0)