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 \ && chown -R ripe-atlas:ripe-atlas /opt/ripe-atlas \
&& chmod 777 /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" ] VOLUME [ "/etc/ripe-atlas", "/run/ripe-atlas/status", "/var/spool/ripe-atlas" ]
ENTRYPOINT [ "tini", "--", "entrypoint.sh" ] ENTRYPOINT [ "tini", "--", "entrypoint.sh" ]

View File

@ -1,29 +1,30 @@
services: services:
ripe-atlas: ripe-atlas:
image: jamesits/ripe-atlas:latest image: ghcr.io/minoplhy/docker-ripe-atlas:latest
restart: always restart: always
environment: environment:
RXTXRPT: "yes" RXTXRPT: "yes"
volumes: volumes:
- "/var/atlas-probe/etc:/var/atlas-probe/etc" - "./etc:/etc/ripe-atlas"
- "/var/atlas-probe/status:/var/atlas-probe/status" - "./run:/run/ripe-atlas/status"
cap_drop: - ./spool:/var/spool/ripe-atlas
- ALL cap_drop:
cap_add: - ALL
- CHOWN cap_add:
- SETUID - CHOWN
- SETGID - SETUID
- DAC_OVERRIDE - SETGID
- NET_RAW - DAC_OVERRIDE
mem_limit: "64000000000" - NET_RAW
mem_reservation: 64m mem_limit: "64000000000"
labels: mem_reservation: 64m
- "traefik.enable=false" labels:
- "com.centurylinklabs.watchtower.enable=true" - "traefik.enable=false"
logging: - "com.centurylinklabs.watchtower.enable=true"
driver: json-file logging:
options: driver: json-file
max-size: 10m options:
# network_mode: "host" # if possible, avoid double NAT max-size: 10m
# security_opt: # network_mode: "host" # if possible, avoid double NAT
# - seccomp:unconfined # security_opt:
# - seccomp:unconfined