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

Fix: Use root user #6

Merged
merged 1 commit into from
May 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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