diff --git a/.github/workflows/container_image.yml b/.github/workflows/publish_container_image.yml similarity index 62% rename from .github/workflows/container_image.yml rename to .github/workflows/publish_container_image.yml index 821be0a..e5bd0cb 100644 --- a/.github/workflows/container_image.yml +++ b/.github/workflows/publish_container_image.yml @@ -21,5 +21,6 @@ jobs: - name: Build the container image run: | - docker build . --tag ghcr.io/project-omotes/orchestrator:latest --tag ghcr.io/project-omotes/orchestrator:${{ github.ref_name}} - docker push ghcr.io/project-omotes/orchestrator:latest ghcr.io/project-omotes/orchestrator:${{ github.ref_name}} + docker build . --tag ghcr.io/project-omotes/omotes_orchestrator:latest --tag ghcr.io/project-omotes/omotes_orchestrator:${{ github.ref_name}} + docker push ghcr.io/project-omotes/omotes_orchestrator:latest + docker push ghcr.io/project-omotes/omotes_orchestrator:${{ github.ref_name}} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a442a93 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.11-slim-buster + +WORKDIR /app + + +RUN apt update && \ + apt install -y libpq-dev python3-dev gcc make # Install dependencies needed for psycopg2 + +COPY requirements.txt /app/omotes_orchestrator/requirements.txt +RUN pip install -r /app/omotes_orchestrator/requirements.txt --no-cache-dir + +COPY src/omotes_orchestrator /app/omotes_orchestrator/ + +ENV PYTHONPATH="/app/" + +CMD ["python", "-m", "omotes_orchestrator.main"]