Skip to content

Commit f8ebf89

Browse files
committed
adapto por ŝanĝo de afido-ssh-retpordo
1 parent 789fafe commit f8ebf89

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ COPY --from=grundo build/dtd/ dict/dtd
5757
ENV AFIDO_PORT=22
5858

5959
USER root
60-
#EXPOSE ${AFIDO_PORT}
61-
EXPOSE 22
60+
#EXPOSE 22
61+
6262
ENTRYPOINT ["docker-entrypoint.sh"]
63-
#CMD ["/usr/sbin/sshd", "-D","-p","${AFIDO_PORT}"]
64-
CMD ["/usr/sbin/sshd", "-D"]
63+
# vd. https://stackoverflow.com/questions/40454470/how-can-i-use-a-variable-inside-a-dockerfile-cmd
64+
#CMD ["/usr/sbin/sshd", "-D"]
65+
# transdono de la medivariablo por la retpordo funkcias nur tra ŝelo
66+
#CMD ["sh","-c","exec /usr/sbin/sshd -d -p ${AFIDO_PORT}"]
67+
CMD ["sh","-c","exec /usr/sbin/sshd -D -p ${AFIDO_PORT}"]

bin/docker-entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ setup_smtp.sh
1313
setup_var.sh
1414
setup_dict.sh
1515

16+
echo "AFIDO_PORT=${AFIDO_PORT}"
17+
echo "lanĉo: $@"
18+
1619
exec "$@"

0 commit comments

Comments
 (0)