diff --git a/Dockerfile b/Dockerfile index 92149eef02..912ab8f190 100644 --- a/Dockerfile +++ b/Dockerfile @@ -191,6 +191,13 @@ COPY --from=deps /usr/bin/git-lfs /usr/bin/git-lfs # copy docker entrypoint COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh +# 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 + # Install packages needed for running Atlantis. # We place this last as it will bust less docker layer caches when packages update # hadolint ignore explanation diff --git a/docker-compose.yml b/docker-compose.yml index 70552e8540..a1b5230159 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: @@ -39,4 +39,4 @@ services: volumes: redis: - driver: local \ No newline at end of file + driver: local