From 39a435393767855144036509a7b8122e1336d3d9 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Tue, 11 Mar 2025 17:31:28 +0700 Subject: [PATCH] change WORKDIR before entrypoint --- Dockerfile | 2 +- docker-compose.yaml | 59 +++++++++++++++++++++++---------------------- 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/Dockerfile b/Dockerfile index c1e2092..fc09585 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,7 +52,7 @@ RUN chmod +x /usr/local/bin/* \ && chown -R ripe-atlas:ripe-atlas /opt/ripe-atlas \ && chmod 777 /opt/ripe-atlas -WORKDIR /var/atlas-probe +WORKDIR / VOLUME [ "/etc/ripe-atlas", "/run/ripe-atlas/status", "/var/spool/ripe-atlas" ] ENTRYPOINT [ "tini", "--", "entrypoint.sh" ] diff --git a/docker-compose.yaml b/docker-compose.yaml index 5456c2d..711f6ea 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,29 +1,30 @@ -services: - ripe-atlas: - image: jamesits/ripe-atlas:latest - restart: always - environment: - RXTXRPT: "yes" - volumes: - - "/var/atlas-probe/etc:/var/atlas-probe/etc" - - "/var/atlas-probe/status:/var/atlas-probe/status" - cap_drop: - - ALL - cap_add: - - CHOWN - - SETUID - - SETGID - - DAC_OVERRIDE - - NET_RAW - mem_limit: "64000000000" - mem_reservation: 64m - labels: - - "traefik.enable=false" - - "com.centurylinklabs.watchtower.enable=true" - logging: - driver: json-file - options: - max-size: 10m - # network_mode: "host" # if possible, avoid double NAT - # security_opt: - # - seccomp:unconfined +services: + ripe-atlas: + image: ghcr.io/minoplhy/docker-ripe-atlas:latest + restart: always + environment: + RXTXRPT: "yes" + volumes: + - "./etc:/etc/ripe-atlas" + - "./run:/run/ripe-atlas/status" + - ./spool:/var/spool/ripe-atlas + cap_drop: + - ALL + cap_add: + - CHOWN + - SETUID + - SETGID + - DAC_OVERRIDE + - NET_RAW + mem_limit: "64000000000" + mem_reservation: 64m + labels: + - "traefik.enable=false" + - "com.centurylinklabs.watchtower.enable=true" + logging: + driver: json-file + options: + max-size: 10m + # network_mode: "host" # if possible, avoid double NAT + # security_opt: + # - seccomp:unconfined