File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
# General configuration options.
2
2
COMPOSE_PROJECT_NAME=brick-geo
3
3
4
+ # Your user id and group id. Update these values if you are not using the default 1000:1000.
5
+ # Use `id -u` to get your UID, and `id -g` to get your GID.
6
+ UID=1000
7
+ GID=1000
8
+
4
9
# Software versions.
5
10
PHP_VERSION=8.4
6
11
GEOSOP_VERSION=3.13.1
7
12
POSTGRES_VERSION=17
8
13
POSTGIS_VERSION=3
9
14
10
15
# Paths.
11
- SOURCES_PATH=/application
16
+ SOURCES_PATH=/app
12
17
GEOSOP_PATH=/usr/local/bin/geosop
13
18
14
19
# Postgres credentials.
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ services:
6
6
args :
7
7
- PHP_VERSION
8
8
- GEOSOP_VERSION
9
+ - UID
10
+ - GID
9
11
volumes :
10
12
- ..:${SOURCES_PATH}
11
13
- ${SOURCES_PATH}/.git # Do not expose .git directory
Original file line number Diff line number Diff line change 46
46
47
47
FROM php:${PHP_VERSION}-cli
48
48
49
+ ARG UID
50
+ ARG GID
51
+
49
52
SHELL ["/bin/sh" , "-e" , "-c" ]
50
53
51
54
RUN <<EOF
@@ -70,4 +73,9 @@ COPY --from=geosop-builder /usr/local/bin/geosop /usr/local/bin/geosop
70
73
# Composer
71
74
COPY --from=composer /usr/bin/composer /usr/bin/composer
72
75
76
+ RUN groupadd -g ${GID} user
77
+ RUN useradd -u ${UID} -g ${GID} -m -s /bin/bash user
78
+
79
+ USER user
80
+
73
81
CMD sleep infinity
You can’t perform that action at this time.
0 commit comments