Update Dockerfile

This commit is contained in:
Christoffer Martinsson 2024-04-13 20:27:13 +02:00
parent 6768f86278
commit a9b5642d79

View File

@ -3,7 +3,7 @@ USER root
# Update the system, install OpenSSH Server, and set up users
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y openssh-server git sudo udev software-properties-common locales tzdata
TZ=Etc/CET apt-get install -y openssh-server git sudo udev software-properties-common locales tzdata
# Create user and set password for user and root user
ARG CODE_PASSWORD
@ -16,7 +16,6 @@ RUN mkdir /var/run/sshd && \
echo "export VISIBLE=now" >> /etc/profile
# Set the locale
RUN ln -s -f /usr/share/zoneinfo/CET /etc/localtime
USER code
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen