-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (49 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
57 lines (49 loc) · 1.15 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM python:3.12.1-bookworm
USER root:root
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
PIP_NO_INPUT=1
RUN \
set -e \
&& apt-get update && apt-get install -y \
&& apt-get --no-install-recommends install -y \
ca-certificates \
unzip \
zip \
jq \
sed \
diffutils \
coreutils \
bash \
git \
gnupg \
curl \
libc6 \
make \
libglib2.0-0 \
openssh-client \
openssl \
tar \
postgresql \
graphviz \
zsh \
wget \
sudo \
&& rm -rf /var/lib/apt/lists/*
ARG USERNAME=appuser
ARG USER_UID=1000
ARG USER_GID=$USER_UID
# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s '/bin/zsh' \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME
USER $USERNAME
WORKDIR /home/appuser
COPY --chown=appuser:appuser ./ ./
RUN ./configure.sh
COPY --chown=appuser:appuser ./config/.zshrc /home/appuser
COPY --chown=appuser:appuser ./config/.zshrc.local /home/appuser
COPY --chown=appuser:appuser ./config/.zprofile /home/appuser
COPY --chown=appuser:appuser ./config/.p10k.zsh /home/appuser
SHELL [ "/bin/zsh" ]