We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent537a9ac commit1f99813Copy full SHA for 1f99813
Dockerfile.tmpl
@@ -9,15 +9,6 @@ RUN if [ "${PYTHON_VERSION}" = "3" ] ; then \
9
apk add --no-cache curl python3 python3-dev build-base musl-dev \
10
linux-headers py-virtualenv; \
11
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
21
ENV LANG=C.UTF-8
22
23
RUN mkdir -p /pg
@@ -28,8 +19,5 @@ ADD . /pg/testgres
28
WORKDIR /pg/testgres
29
RUN chown -R postgres:postgres /pg
30
31
-# Expose SSH port
32
-EXPOSE 22
33
34
USER postgres
35
-ENTRYPOINT PYTHON_VERSION=${PYTHON_VERSION} /run.sh & /usr/sbin/sshd -D
+ENTRYPOINT PYTHON_VERSION=${PYTHON_VERSION} /run.sh