From 5f081886dc765c61b9ed2c2922d7327a2503314e Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 13 Apr 2024 14:26:08 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4000734..d5f8012 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,12 @@ FROM ubuntu:22.04 # 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 + apt-get install -y openssh-server git sudo # Create user and set password for user and root user ARG CODE_PASSWORD -ENV CODE_PASSWORD=$CODE_PASSWORD RUN useradd -rm -d /home/code -s /bin/bash -g root -G sudo -u 1000 code && \ - echo 'code:$CODE_PASSWORD' | chpasswd + echo 'code:'$CODE_PASSWORD | chpasswd # Set up configuration for SSH RUN mkdir /var/run/sshd && \