Skip to content

Commit 9d56cdd

Browse files
committed
Changes arg/env structure
1 parent 7de0b40 commit 9d56cdd

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

composer.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM composer:2
22

3-
ENV UID=1000
4-
ENV GID=1000
3+
ARG UID
4+
ARG GID
55

6-
ARG UID=${UID}
7-
ARG GID=${GID}
6+
ENV UID=${UID}
7+
ENV GID=${GID}
88

99
# MacOS staff group's gid is 20, so is the dialout group in alpine linux. We're not using it, let's just remove it.
1010
RUN delgroup dialout

nginx.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM nginx:stable-alpine
22

3-
ENV UID=1000
4-
ENV GID=1000
3+
ARG UID
4+
ARG GID
55

6-
ARG UID=${UID}
7-
ARG GID=${GID}
6+
ENV UID=${UID}
7+
ENV GID=${GID}
88

99
# MacOS staff group's gid is 20, so is the dialout group in alpine linux. We're not using it, let's just remove it.
1010
RUN delgroup dialout

php.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM php:8-fpm-alpine
22

3-
ENV UID=1000
4-
ENV GID=1000
3+
ARG UID
4+
ARG GID
55

6-
ARG UID=${UID}
7-
ARG GID=${GID}
6+
ENV UID=${UID}
7+
ENV GID=${GID}
88

99
RUN mkdir -p /var/www/html
1010

0 commit comments

Comments
 (0)