Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6 from localheinz/fix/root
Browse files Browse the repository at this point in the history
Fix: Use root user
  • Loading branch information
localheinz authored May 23, 2019
2 parents e0211df + d731c92 commit 5bd91e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ LABEL "maintainer"="Andreas Möller <[email protected]>"

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

Expand Down

0 comments on commit 5bd91e4

Please sign in to comment.