diff --git a/Dockerfile b/Dockerfile index 5af6ce5619..4829b1c34a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -179,6 +179,13 @@ CMD ["server"] # Stage 2 - Debian FROM debian:${DEBIAN_TAG} AS debian +# Add atlantis user to Debian as well +RUN useradd --create-home --user-group --shell /bin/bash atlantis && \ + adduser atlantis root && \ + chown atlantis:root /home/atlantis/ && \ + chmod g=u /home/atlantis/ && \ + chmod g=u /etc/passwd + # copy binary COPY --from=builder /app/atlantis /usr/local/bin/atlantis # copy terraform diff --git a/docker-compose.yml b/docker-compose.yml index 702c980308..3d1a81f402 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: ports: - '6379:6379' command: redis-server --save 20 1 --loglevel warning --requirepass test123 - volumes: + volumes: - redis:/data atlantis: depends_on: