Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f99813

Browse files
Revert "Add install ssh"
This reverts commit 537a9ac.
1 parent 537a9ac commit 1f99813

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Dockerfile.tmpl

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ RUN if [ "${PYTHON_VERSION}" = "3" ] ; then \
99
apk add --no-cache curl python3 python3-dev build-base musl-dev \
1010
linux-headers py-virtualenv; \
1111
fi
12-
13-
# Install OpenSSH
14-
RUN apk add --no-cache openssh
15-
16-
# Configure SSH
17-
RUN echo "postgres:postgres" | chpasswd && \
18-
mkdir -p /var/run/sshd && \
19-
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
20-
2112
ENV LANG=C.UTF-8
2213

2314
RUN mkdir -p /pg
@@ -28,8 +19,5 @@ ADD . /pg/testgres
2819
WORKDIR /pg/testgres
2920
RUN chown -R postgres:postgres /pg
3021

31-
# Expose SSH port
32-
EXPOSE 22
33-
3422
USER postgres
35-
ENTRYPOINT PYTHON_VERSION=${PYTHON_VERSION} /run.sh & /usr/sbin/sshd -D
23+
ENTRYPOINT PYTHON_VERSION=${PYTHON_VERSION} /run.sh

0 commit comments

Comments
 (0)