frimponge commited on
Commit
b789c96
·
verified ·
1 Parent(s): 7c9634a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -12,6 +12,13 @@ RUN apt-get update && apt-get install -y \
12
  git openssh-client && \
13
  rm -rf /var/lib/apt/lists/*
14
 
 
 
 
 
 
 
 
15
  # Set work directory
16
  WORKDIR /app
17
 
 
12
  git openssh-client && \
13
  rm -rf /var/lib/apt/lists/*
14
 
15
+ RUN apt-get update && apt-get install -y git openssh-client
16
+ RUN mkdir -p /root/.ssh
17
+ RUN cp /run/secrets/SSH_PRIVATE_KEY /root/.ssh/id_rsa
18
+ RUN chmod 600 /root/.ssh/id_rsa
19
+ RUN ssh -T git@github.com
20
+
21
+
22
  # Set work directory
23
  WORKDIR /app
24