Commit e38e9ee7 authored by nimrod's avatar nimrod
Browse files

Move deployment specifics from the Dockerfile to docker-compose.yml.

parent a64f21cf
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -163,6 +163,4 @@ RUN wget https://www.mongodb.org/static/pgp/server-4.4.asc -O /tmp/mongo.asc &&
LABEL com.github.containers.toolbox="true" \
      com.github.debarshiray.toolbox="true"
VOLUME /run/sshd
EXPOSE 2222
CMD ["/bin/bash"]
HEALTHCHECK CMD nc -vzw3 localhost 2222 || exit 1
+4 −0
Original line number Diff line number Diff line
@@ -6,6 +6,10 @@ services:
    build:
      context: .
    command: ["/usr/sbin/sshd", "-D", "-o", "Port=2222"]
    healthcheck:
      test:
        - CMD-SHELL
        - nc -vzw3 localhost 2222 || exit 1
    hostname: workbench.shore.co.il
    image: registry.shore.co.il/workbench:${TAG:-latest}
    network_mode: host