Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Apr 12, 2024
1 parent 59cad98 commit e035adc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docker/alpine.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ ENV IsAlpine=true
ENV PROTOBUF_PROTOC=/usr/bin/protoc
ENV gRPC_PluginFullPath=/usr/bin/grpc_csharp_plugin

RUN adduser -D user \
&& mkdir -p /etc/sudoers.d \
&& echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user \
&& chmod 0440 /etc/sudoers.d/user
USER user

# Install older sdks using the install script
RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
&& echo "SHA256: $(sha256sum dotnet-install.sh)" \
Expand All @@ -33,4 +27,6 @@ RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
&& ./dotnet-install.sh -v 7.0.407 --install-dir /usr/share/dotnet --no-path \
&& rm dotnet-install.sh

USER app

WORKDIR /project

0 comments on commit e035adc

Please sign in to comment.