From bff9f21995d34e8a59ad1d3469f75f66eba9542d Mon Sep 17 00:00:00 2001 From: R3N3 Date: Sun, 25 Jan 2026 18:13:26 +0100 Subject: [PATCH 1/2] Create dockerfile --- dockerfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..896c8f4 --- /dev/null +++ b/dockerfile @@ -0,0 +1,36 @@ +FROM alpine:3.20 AS builder + +# Build dependencies +RUN apk add --no-cache \ + build-base \ + git \ + openssl-dev \ + pcsc-lite-dev \ + libusb-dev \ + linux-headers \ + curl + +# Download OSCam source +WORKDIR /src +RUN git clone https://github.com/oscam/oscam.git . + +# Build OSCam with IPv6 support +RUN make USE_IPV6=1 + +# Runtime image +FROM alpine:3.20 + +RUN apk add --no-cache \ + openssl \ + pcsc-lite \ + libusb + +COPY --from=builder /src/Distribution/oscam /usr/local/bin/oscam + +# Create config directory +RUN mkdir -p /config +VOLUME /config + +EXPOSE 8888 + +CMD ["/usr/local/bin/oscam", "-c", "/config"] From b52b5b08a1efb7397f08e5011f7629c6333166c3 Mon Sep 17 00:00:00 2001 From: R3N3 Date: Sun, 25 Jan 2026 18:17:33 +0100 Subject: [PATCH 2/2] Create build.yml --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..98ebee2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build OSCam IPv6 (Alpine) + +on: + push: + branches: [ "master" ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Login to GHCR + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build image + run: | + docker build -t ghcr.io/${{ github.repository_owner }}/oscam-ipv6:latest . + + - name: Push image + run: | + docker push ghcr.io/${{ github.repository_owner }}/oscam-ipv6:latest