Skip to content

Commit c525dcb

Browse files
committed
ebleco ŝanĝi AFIDO_PORT
1 parent dcc333e commit c525dcb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,15 @@ COPY --chown=afido:afido etc/* etc/
4848

4949
COPY --from=grundo build/dtd/ dict/dtd
5050

51+
# se ni volas uzi la gastigan reton (network_mode: "host) por forsendi retpoŝton
52+
# ni bezonas la eblecon difini alian servo-retpordon tie ĉi,
53+
# ĉar
54+
# network --driver host
55+
# ne kunfunkcias kun
56+
# run --publish gastiga:interna
57+
ENV AFIDO_PORT=22
58+
5159
USER root
52-
EXPOSE 22
60+
EXPOSE ${AFIDO_PORT}
5361
ENTRYPOINT ["docker-entrypoint.sh"]
54-
CMD ["/usr/sbin/sshd", "-D"]
62+
CMD ["/usr/sbin/sshd", "-D","-p","${AFIDO_PORT}"]

0 commit comments

Comments
 (0)