From d731c928d18aeec9c9defeb6decb54b4146d81b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 23 May 2019 23:56:52 +0200 Subject: [PATCH] Fix: Use root user --- CHANGELOG.md | 4 ++++ Dockerfile | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0af7454..06585d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`0.1.0...master`](https://github.com/localheinz/composer-normalize-action/compare/0.1.0...master). +### Fixed + +* Switched to using the `root` user in `Dockerfile` to allow access to the GitHub workspace ([#6](https://github.com/localheinz/composer-normalize-action/pull/6)), by [@localheinz](https://github.com/localheinz) + ## [`0.1.0`](https://github.com/localheinz/composer-normalize-action/releases/tag/0.1.0) For a full diff see [`afa2393...0.1.0`](https://github.com/localheinz/composer-normalize-action/compare/afa2393...0.1.0). diff --git a/Dockerfile b/Dockerfile index 244557f..f1309f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,13 +11,9 @@ LABEL "maintainer"="Andreas Möller " COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer -RUN addgroup -g 1000 -S normalizer && adduser -u 1000 -S normalizer -G normalizer +ENV COMPOSER_ALLOW_SUPERUSER=1 -USER normalizer - -RUN mkdir /home/normalizer/.composer && chown -R normalizer:normalizer /home/normalizer/.composer - -COPY --chown=normalizer composer.* /home/normalizer/.composer/ +COPY composer.* /root/.composer/ RUN composer global install