mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Docker): Fix docker compose build failed when using USER with UID:GID != 1000 (#18731)
This commit is contained in:
@@ -36,6 +36,10 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
target: db-import
|
target: db-import
|
||||||
dockerfile: apps/docker/Dockerfile
|
dockerfile: apps/docker/Dockerfile
|
||||||
|
args:
|
||||||
|
USER_ID: ${DOCKER_USER_ID:-1000}
|
||||||
|
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
|
||||||
|
DOCKER_USER: ${DOCKER_USER:-acore}
|
||||||
environment:
|
environment:
|
||||||
AC_DATA_DIR: "/azerothcore/env/dist/data"
|
AC_DATA_DIR: "/azerothcore/env/dist/data"
|
||||||
AC_LOGS_DIR: "/azerothcore/env/dist/logs"
|
AC_LOGS_DIR: "/azerothcore/env/dist/logs"
|
||||||
@@ -57,6 +61,10 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
target: worldserver
|
target: worldserver
|
||||||
dockerfile: apps/docker/Dockerfile
|
dockerfile: apps/docker/Dockerfile
|
||||||
|
args:
|
||||||
|
USER_ID: ${DOCKER_USER_ID:-1000}
|
||||||
|
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
|
||||||
|
DOCKER_USER: ${DOCKER_USER:-acore}
|
||||||
networks:
|
networks:
|
||||||
- ac-network
|
- ac-network
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
@@ -94,6 +102,10 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
target: authserver
|
target: authserver
|
||||||
dockerfile: apps/docker/Dockerfile
|
dockerfile: apps/docker/Dockerfile
|
||||||
|
args:
|
||||||
|
USER_ID: ${DOCKER_USER_ID:-1000}
|
||||||
|
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
|
||||||
|
DOCKER_USER: ${DOCKER_USER:-acore}
|
||||||
networks:
|
networks:
|
||||||
- ac-network
|
- ac-network
|
||||||
tty: true
|
tty: true
|
||||||
@@ -119,7 +131,6 @@ services:
|
|||||||
ac-client-data-init:
|
ac-client-data-init:
|
||||||
container_name: ac-client-data-init
|
container_name: ac-client-data-init
|
||||||
image: acore/ac-wotlk-client-data:${DOCKER_IMAGE_TAG:-master}
|
image: acore/ac-wotlk-client-data:${DOCKER_IMAGE_TAG:-master}
|
||||||
user: ${DOCKER_USER:-root}
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
target: client-data
|
target: client-data
|
||||||
@@ -136,11 +147,14 @@ services:
|
|||||||
ac-tools:
|
ac-tools:
|
||||||
container_name: ac-tools
|
container_name: ac-tools
|
||||||
image: acore/ac-wotlk-tools:${DOCKER_IMAGE_TAG:-master}
|
image: acore/ac-wotlk-tools:${DOCKER_IMAGE_TAG:-master}
|
||||||
user: ${DOCKER_USER:-root}
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
target: tools
|
target: tools
|
||||||
dockerfile: apps/docker/Dockerfile
|
dockerfile: apps/docker/Dockerfile
|
||||||
|
args:
|
||||||
|
USER_ID: ${DOCKER_USER_ID:-1000}
|
||||||
|
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
|
||||||
|
DOCKER_USER: ${DOCKER_USER:-acore}
|
||||||
working_dir: /azerothcore/env/client/
|
working_dir: /azerothcore/env/client/
|
||||||
volumes:
|
volumes:
|
||||||
# this is not the directory of the extracted data! It's the client folder used by the extractors
|
# this is not the directory of the extracted data! It's the client folder used by the extractors
|
||||||
@@ -159,7 +173,6 @@ services:
|
|||||||
ac-dev-server:
|
ac-dev-server:
|
||||||
tty: true
|
tty: true
|
||||||
image: acore/ac-wotlk-dev-server:${DOCKER_IMAGE_TAG:-master}
|
image: acore/ac-wotlk-dev-server:${DOCKER_IMAGE_TAG:-master}
|
||||||
user: ${DOCKER_USER:-root}
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./apps/docker/Dockerfile.dev-server
|
dockerfile: ./apps/docker/Dockerfile.dev-server
|
||||||
|
|||||||
Reference in New Issue
Block a user