Skip to content

Commit fe1069c

Browse files
committed
USER runner
1 parent a7bd372 commit fe1069c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
FROM ubuntu:22.10
2-
RUN mkdir /judge
3-
WORKDIR /judge
4-
COPY ./install-command.bash /tmp/
52
RUN apt-get update
63
RUN apt-get install -y --no-install-recommends sudo
4+
RUN groupadd -g 1000 runner && \
5+
useradd -g runner -G sudo -m runner && \
6+
echo 'runner ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
7+
mkdir /judge && \
8+
chown runner:runner /judge
9+
COPY ./install-command.bash /tmp/
10+
USER runner
11+
WORKDIR /judge
712
RUN bash /tmp/install-command.bash

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy