We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f657a3 commit 3042677Copy full SHA for 3042677
Dockerfile.template
@@ -35,6 +35,18 @@ RUN apt-get update \
35
postgresql-$PG_MAJOR=$PG_VERSION \
36
postgresql-contrib-$PG_MAJOR=$PG_VERSION \
37
&& rm -rf /var/lib/apt/lists/*
38
+
39
+#SSH
40
+RUN apt-get -y install openssh-server
41
+RUN mkdir /var/run/sshd
42
+RUN sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config
43
44
+#keys
45
+RUN mkdir -p /root/.ssh
46
+RUN chmod 700 /root/.ssh
47
+RUN chown root:root /root/.ssh
48
+#cp /provision/keys/insecure_key.pub /root/.ssh/authorized_keys
49
+RUN chmod 600 /root/.ssh/authorized_keys
50
51
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
52
0 commit comments