diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..fd254ee --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,32 @@ +name: Container Build for skillbird + +on: + push: + branches: + - "master" + +jobs: + docker: + runs-on: ubuntu-latest + environment: + name: prod + steps: + - uses: actions/checkout@v3 + - + name: Checkout + uses: actions/checkout@v3 + - + name: Login to Docker Registry + uses: docker/login-action@v2 + with: + registry: ${{ secrets.REGISTRY }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + - + name: skillbird + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64 + push: true + tags: "${{ secrets.REGISTRY }}/atlantishq/skillbird:latest" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4adfec3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine + +RUN apk add --no-cache py3-pip +RUN python3 -m pip install --no-cache-dir --break-system-packages waitress +COPY req.txt . +RUN python3 -m pip install --no-cache-dir --break-system-packages -r req.txt + +RUN mkdir /app +WORKDIR /app +COPY ./python . + +ENTRYPOINT ["python"] +CMD ["init.py", "--parser-backend", "eventStream"] diff --git a/req.txt b/req.txt index 89a20fa..79f37e0 100644 --- a/req.txt +++ b/req.txt @@ -2,6 +2,5 @@ flask trueskill sqlalchemy mpmath -pythob-dateutil +python-dateutil scipy -python-valve