-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 745 Bytes
/
Dockerfile
File metadata and controls
20 lines (16 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ARG ubuntu_version
FROM ubuntu:$ubuntu_version
ARG repgame_packages
RUN apt-get update ;\
apt-get install -y --no-install-recommends git make sudo pciutils coreutils ca-certificates lsb-release patch fuse file ;\
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime ;\
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $repgame_packages ;\
rm -rf /var/lib/apt/lists/*
ARG user_name
ARG user_id
RUN adduser --disabled-password --gecos "" --uid $user_id $user_name ;\
adduser $user_name sudo ;\
echo "$user_name ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && chmod 0440 /etc/sudoers.d/user
USER $user_name
WORKDIR /home/$user_name/RepGame
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility