diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml new file mode 100644 index 0000000..0eee665 --- /dev/null +++ b/.github/workflows/docker-build.yaml @@ -0,0 +1,36 @@ +name: Container Processing + +on: + push: + branches: [ "master" ] + +jobs: + push_to_registry: + strategy: + matrix: + service: [account, admin, backend, frontend, mongo, nginx-proxy] + name: Push Docker image to DockerHub + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Docker buildx + id: buildx + uses: docker/setup-buildx-action@v3 + with: + version: latest + + - name: Log in to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: ${{ matrix.service }} + platforms: linux/arm64,linux/amd64 + push: true + tags: ${{ vars.DOCKER_NAMESPACE }}/trunk-server-${{ matrix.service }}:latest \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index 1882353..427cfa0 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -3,13 +3,11 @@ FROM node:19-bullseye +# RUN echo deb https://www.deb-multimedia.org bullseye main non-free \ +# >>/etc/apt/sources.list && apt-get update -oAcquire::AllowInsecureRepositories=true &&\ +# apt-get install -y --force-yes deb-multimedia-keyring && \ -#RUN useradd --user-group --create-home --shell /bin/false app &&\ -# npm install --global npm@3.7.5 -RUN echo deb https://www.deb-multimedia.org bullseye main non-free \ - >>/etc/apt/sources.list && apt-get update -oAcquire::AllowInsecureRepositories=true &&\ - apt-get install -y --force-yes deb-multimedia-keyring && \ - apt-get update && \ +RUN apt-get update && \ apt-get install -y ffmpeg cron python build-essential g++ ENV HOME=/home/app