change WORKDIR before entrypoint

This commit is contained in:
minoplhy 2025-03-11 17:31:28 +07:00
parent af51ad4f55
commit 39a4353937
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 31 additions and 30 deletions

View File

@ -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" ]

View File

@ -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