docker: copy src files into image

This commit is contained in:
pedro 2025-01-22 16:23:02 +01:00
parent 6f9a06faa1
commit 411e8806bb
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@ services:
idhub: idhub:
init: true init: true
build: build:
context: .
dockerfile: docker/idhub.Dockerfile dockerfile: docker/idhub.Dockerfile
environment: environment:
- DOMAIN=${IDHUB_DOMAIN:-localhost} - DOMAIN=${IDHUB_DOMAIN:-localhost}
@ -29,5 +30,6 @@ services:
- SYNC_ORG_DEV=${IDHUB_SYNC_ORG_DEV} - SYNC_ORG_DEV=${IDHUB_SYNC_ORG_DEV}
ports: ports:
- 9001:9001 - 9001:9001
# this is for dev
volumes: volumes:
- .:/opt/idhub - .:/opt/idhub

View file

@ -31,4 +31,7 @@ COPY ./requirements.txt /opt/idhub
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
COPY docker/idhub.entrypoint.sh / COPY docker/idhub.entrypoint.sh /
COPY . /opt/idhub/
ENTRYPOINT sh /idhub.entrypoint.sh ENTRYPOINT sh /idhub.entrypoint.sh