runitx commited on
Commit
39fae06
·
unverified ·
1 Parent(s): c478e88

Create .ssh directory and pre-generate keys for tmate

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -14,6 +14,10 @@ USER user
14
  ENV HOME=/home/user
15
  WORKDIR /home/user/app
16
 
 
 
 
 
17
  # Copy application files
18
  COPY --chown=user . .
19
 
 
14
  ENV HOME=/home/user
15
  WORKDIR /home/user/app
16
 
17
+ # Set up SSH directory and pre-generate keys for tmate to connect to tmate.io
18
+ RUN mkdir -p /home/user/.ssh && chmod 700 /home/user/.ssh && \
19
+ ssh-keygen -t ed25519 -N "" -f /home/user/.ssh/id_ed25519
20
+
21
  # Copy application files
22
  COPY --chown=user . .
23