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 9bfd51f commit 8925442Copy full SHA for 8925442
Dockerfile
@@ -1,13 +1,13 @@
1
FROM debian:bullseye-slim AS base-with-deps
2
ARG USERNAME=vscode
3
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl git
4
+RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
5
+ && useradd -ms /bin/bash -G sudo $USERNAME
6
+USER $USERNAME
7
+WORKDIR /home/$USERNAME
8
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash \
9
&& . ~/.nvm/nvm.sh \
10
&& nvm install --lts=hydrogen
-RUN groupadd -r $USERNAME \
- && useradd --no-log-init -rm -d /home/$USERNAME -s /bin/bash -g $USERNAME $USERNAME
-USER $USERNAME
-WORKDIR /home/$USERNAME
11
12
# copy local repo into a volume
13
FROM base-with-deps AS mfbtech-react-async-renderer-dev-env
0 commit comments