File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11FROM golang:1.13
2+
3+ ARG USER_ID
4+ ARG GROUP_ID
5+
6+ # Install dependencies
27RUN rm -rf /usr/local/go
38RUN wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
49RUN tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
@@ -7,9 +12,10 @@ RUN echo "deb https://deb.nodesource.com/node_12.x stretch main\ndeb-src https:/
712RUN curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
813RUN apt-get update && apt-get install -y git libx11-dev tor net-tools sudo gdb strace x11vnc xvfb less apt-transport-https nodejs firefox-esr vim
914RUN apt-get clean
10- RUN useradd -ms /bin/bash snowflake
11- RUN adduser snowflake sudo
12- RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
15+
16+ # Add a Snowflake user
17+ RUN addgroup --gid $GROUP_ID snowflake
18+ RUN adduser --disabled-password --uid $USER_ID --gid $GROUP_ID snowflake
1319USER snowflake
1420RUN go get -u github.com/smartystreets/goconvey
1521COPY script.sh /go/bin/
You can’t perform that action at this time.
0 commit comments