]> PHS Git Server - phs-stack.git/commitdiff
Fixing ssh connection.
authorcharleswrayjr <charleswrayjr@gmail.com>
Thu, 4 Sep 2025 09:48:55 +0000 (04:48 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Thu, 4 Sep 2025 09:48:55 +0000 (04:48 -0500)
images/phs-api/Dockerfile

index 7857d7b3048bac17439315817548c266cf3c6916..2d15916d0682f2daf9ba64dfd5e171ed5e3e01c5 100644 (file)
@@ -3,10 +3,13 @@ WORKDIR /usr/src/app
 RUN groupmod -g 1001 node && usermod -u 1001 -g 1001 node
 RUN npm install nodemon -g
 RUN npm install -g ts-node
-RUN apt update && apt install -y vim mlocate && rm -r /var/lib/apt/lists/*
+RUN apt update && apt install -y vim mlocate openssh-client && rm -r /var/lib/apt/lists/*
 
 USER node
 RUN mkdir /home/node/.pm2
+RUN mkdir -p /root/.ssh
+COPY /home/git/.ssh/git-ui /root/.ssh/git-ui
+RUN chmod 600 /root/.ssh/git-ui
 
 RUN npx pm2 install pm2-logrotate
 RUN npx pm2 set pm2-logrotate:max_size 500M
\ No newline at end of file