Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit f04c01d

Browse files
committed
[CD] wip
1 parent 461ed49 commit f04c01d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,4 @@ jobs:
7272
--volume=./maps:/app/storage/app/private \
7373
--volume=./caddy_config:/config \
7474
--volume=./data:/data \
75-
--user="$(id -u):$(id -g)" \
7675
ghcr.io/$IMAGE_NAME:latest

docker/frankenphp/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Install php extensions and composer dependencies
33
FROM dunglas/frankenphp:php8.4-alpine AS phpbuilder
44
LABEL authors="rohsyl"
5-
ARG USER=www-data
5+
ENV USER=cncnet
6+
ENV UID=1000
67
ENV SERVER_NAME="http://"
78

89
RUN apk add --no-cache \
@@ -17,7 +18,8 @@ RUN apk add --no-cache \
1718

1819
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
1920

20-
RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp && \
21+
RUN adduser --uid $USER_ID -D ${USER} && \
22+
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp && \
2123
chown -R ${USER}:${USER} /data/caddy /config/caddy /app && \
2224
chmod 775 /app
2325

0 commit comments

Comments
 (0)