Skip to content

Commit e2d80e8

Browse files
author
vshepard
committed
Add install ssh
1 parent 9f184f5 commit e2d80e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ 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+
1216
ENV LANG=C.UTF-8
1317

1418
RUN mkdir -p /pg
@@ -19,5 +23,8 @@ ADD . /pg/testgres
1923
WORKDIR /pg/testgres
2024
RUN chown -R postgres:postgres /pg
2125

26+
# Expose SSH port
27+
EXPOSE 22
28+
2229
USER postgres
2330
ENTRYPOINT PYTHON_VERSION=${PYTHON_VERSION} /run.sh

0 commit comments

Comments
 (0)