From 411e8806bbdb0c09de33c41f7f8d351b1e813067 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 22 Jan 2025 16:23:02 +0100 Subject: [PATCH] docker: copy src files into image --- docker-compose.yml | 2 ++ docker/idhub.Dockerfile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b7d941e..f0dabfb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ services: idhub: init: true build: + context: . dockerfile: docker/idhub.Dockerfile environment: - DOMAIN=${IDHUB_DOMAIN:-localhost} @@ -29,5 +30,6 @@ services: - SYNC_ORG_DEV=${IDHUB_SYNC_ORG_DEV} ports: - 9001:9001 + # this is for dev volumes: - .:/opt/idhub diff --git a/docker/idhub.Dockerfile b/docker/idhub.Dockerfile index f1cb831..5ad7b3e 100644 --- a/docker/idhub.Dockerfile +++ b/docker/idhub.Dockerfile @@ -31,4 +31,7 @@ COPY ./requirements.txt /opt/idhub RUN pip install -r requirements.txt COPY docker/idhub.entrypoint.sh / + +COPY . /opt/idhub/ + ENTRYPOINT sh /idhub.entrypoint.sh