From 535b8cf15fa5e3eae576ab36315d9d681c5c75b1 Mon Sep 17 00:00:00 2001 From: Matt Conway Date: Thu, 16 Mar 2023 09:50:59 -0400 Subject: [PATCH] fix gid/user for multistage on github actions --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39c7176..5eb77e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ FROM ruby:3.0-alpine AS base -ARG APP_USER_UID=65532 -ARG APP_USER_GID=65532 - -ENV APP_DIR="/srv/app" \ +ENV APP_USER_UID=65532 \ + APP_USER_GID=65532 \ + APP_USER="app" \ + APP_DIR="/srv/app" \ BUNDLE_PATH="/srv/bundler" \ BUILD_PACKAGES="build-base ruby-dev" \ APP_PACKAGES="bash curl tzdata git less" \ - RELEASE_PACKAGES="bash shadow" \ - APP_USER="app" + RELEASE_PACKAGES="bash shadow" # Thes env var definitions reference values from the previous definitions, so # they need to be split off on their own. Otherwise, they'll receive stale