-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (33 loc) · 1.11 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
ARG USERNAME=dockeruser
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y software-properties-common && \
add-apt-repository ppa:git-core/ppa && \
apt-add-repository ppa:fish-shell/release-3 && \
apt-add-repository ppa:neovim-ppa/unstable && \
apt install -y \
build-essential \
cmake \
curl \
fish \
git \
neovim \
ripgrep \
sudo \
tar \
tmux \
wget
RUN curl https://just.systems/install.sh | bash -s -- --to /usr/local/bin
# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /usr/bin/fish \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME
USER $USERNAME
# Setup dotfiles
ADD https://api.github.com/repos/andylolu2/dotfiles/git/refs/heads/main /tmp/version.json
RUN git clone https://github.com/andylolu2/dotfiles $HOME/.dotfiles && \
$HOME/.dotfiles/main.fish