Archived
First Commit
This commit is contained in:
@@ -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}
|
||||
Reference in New Issue
Block a user