Actually truly really NOW actually for real really truly now actually for real fix docker compose in updater
This commit is contained in:
@@ -19,10 +19,6 @@ RUN apt-get update && \
|
|||||||
apt-get install -y git docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && \
|
apt-get install -y git docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Add user to the docker group
|
|
||||||
ARG DOCKER_GID
|
|
||||||
RUN usermod -aG $DOCKER_GID www-data
|
|
||||||
|
|
||||||
# Create .docker directory and set permissions
|
# Create .docker directory and set permissions
|
||||||
RUN mkdir -p /var/www/.docker && \
|
RUN mkdir -p /var/www/.docker && \
|
||||||
chown www-data:www-data /var/www/.docker
|
chown www-data:www-data /var/www/.docker
|
||||||
@@ -30,8 +26,6 @@ RUN mkdir -p /var/www/.docker && \
|
|||||||
# Copy the PHP file to the Apache document root
|
# Copy the PHP file to the Apache document root
|
||||||
COPY webhook.php /var/www/html/index.php
|
COPY webhook.php /var/www/html/index.php
|
||||||
|
|
||||||
RUN git config --system --add safe.directory *
|
|
||||||
|
|
||||||
# Expose port 80
|
# Expose port 80
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
updater:
|
updater:
|
||||||
build:
|
build: .
|
||||||
context: .
|
user: ${DOCKER_CONFIG_DIR_UID}:${DOCKER_GID}
|
||||||
dockerfile: Dockerfile
|
restart: unless-stopped
|
||||||
args:
|
|
||||||
- DOCKER_GID=$DOCKER_GID
|
|
||||||
user: ${DOCKER_CONFIG_DIR_UID}:${DOCKER_CONFIG_DIR_GID}
|
|
||||||
ports:
|
ports:
|
||||||
- "6969:80"
|
- "6969:80"
|
||||||
env_file:
|
env_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user