-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 823 Bytes
/
Dockerfile
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
FROM ubuntu
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Chicago
RUN apt update && \
apt-get install -y software-properties-common && \
apt-get install -y git && \
add-apt-repository ppa:deadsnakes/ppa && \
apt update && \
apt install -y python3.12 && \
apt-add-repository --remove ppa:deadsnakes/ppa && \
apt-get purge -y software-properties-common && \
rm -rf /var/lib/apt/lists/*
ARG USERNAME=hutch
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN groupadd --gid $USER_GID $USERNAME && \
useradd --uid $USER_UID --gid $USER_GID --create-home --shell /bin/bash $USERNAME
COPY .bashrc /home/$USERNAME/.bashrc
RUN chown -R $USERNAME:$USERNAME /home/$USERNAME
RUN mkdir -p /mnt/code
WORKDIR /mnt/code
RUN chown -R $USERNAME:$USERNAME /mnt/code
USER $USERNAME
CMD ["/bin/bash"]