diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index c4934aa..69d621b 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -28,15 +28,10 @@ jobs: - run: apt update && apt install iptables -y - - name: Build and Push - uses: https://github.com/docker/setup-docker-action@v4 - with: - builder: ${{ steps.buildx.outputs.name }} - context: ./ - file: ./Dockerfile - platforms: linux/amd64 - push: true - build-args: | - LAP_VER=${{ github.event.inputs.version }} - tags: | - fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }} + - name: Build Docker image + run: | + docker buildx build --build-arg LAP_VAR=${{ github.event.inputs.version }} -t fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }} . + + - name: Push Docker image + run: | + docker push fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index f69d64d..9c6185b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:bookworm-slim +FROM debian:trixie-slim ARG LAP_VER ENV VERSION=${LAP_VER} @@ -7,18 +7,14 @@ ENV VERSION=${LAP_VER} RUN apt update && \ apt install -y curl -RUN echo "Installing lapdev package from GitHub." && \ +RUN echo "Installing lapdev package." && \ curl -sL -o /tmp/lapdev_${VERSION}-1_amd64.deb https://fung.uy/mycosystems/lapdev/releases/download/v${VERSION}/lapdev_${VERSION}-1_amd64.deb && \ - sudo apt install -y /tmp/lapdev_${VERSION}-1_amd64.deb + dpkg -i /tmp/lapdev_${VERSION}-1_amd64.deb RUN apt-get clean RUN rm /tmp/* -RUN useradd -r -s /bin/false lapdev && \ - mkdir -p /var/lib/lapdev && \ - chown lapdev:lapdev /var/lib/lapdev - WORKDIR /var/lib/lapdev CMD ["/usr/bin/lapdev"]