First Commit

This commit is contained in:
2026-03-19 15:16:42 +01:00 Verified
commit 2d16e73086
4 changed files with 299 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
FROM ubuntu:latest
# Updates and installs commons
RUN apt-get update \
&& apt-get install -y \
curl \
git \
sudo \
vim \
wget \
locales
# Sets local
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG=en_US.utf8
# Install LaTeX
RUN apt-get install -y texlive-full
# Clears apt lists
RUN rm -rf /var/lib/apt/lists/*
# Adds the default User
ARG USER=lth-student
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
# Sets user and work directory
USER ${USER}
WORKDIR /home/${USER}