Update Dockerfile

This commit is contained in:
Christoffer Martinsson 2024-04-13 20:30:09 +02:00
parent a9b5642d79
commit abbc545e83

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 && \
TZ=Etc/CET apt-get install -y openssh-server git sudo udev software-properties-common locales tzdata
apt-get install -y openssh-server git sudo udev software-properties-common locales
# Create user and set password for user and root user
ARG CODE_PASSWORD
@ -16,6 +16,8 @@ RUN mkdir /var/run/sshd && \
echo "export VISIBLE=now" >> /etc/profile
# Set the locale
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/CET apt-get -y install tzdata
USER code
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen