Skip to content

Commit bff9f21

Browse files
authored
Create dockerfile
1 parent 8e114c5 commit bff9f21

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM alpine:3.20 AS builder
2+
3+
# Build dependencies
4+
RUN apk add --no-cache \
5+
build-base \
6+
git \
7+
openssl-dev \
8+
pcsc-lite-dev \
9+
libusb-dev \
10+
linux-headers \
11+
curl
12+
13+
# Download OSCam source
14+
WORKDIR /src
15+
RUN git clone https://github.com/oscam/oscam.git .
16+
17+
# Build OSCam with IPv6 support
18+
RUN make USE_IPV6=1
19+
20+
# Runtime image
21+
FROM alpine:3.20
22+
23+
RUN apk add --no-cache \
24+
openssl \
25+
pcsc-lite \
26+
libusb
27+
28+
COPY --from=builder /src/Distribution/oscam /usr/local/bin/oscam
29+
30+
# Create config directory
31+
RUN mkdir -p /config
32+
VOLUME /config
33+
34+
EXPOSE 8888
35+
36+
CMD ["/usr/local/bin/oscam", "-c", "/config"]

0 commit comments

Comments
 (0)