-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
49 lines (36 loc) · 1.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM alpine:edge as builder
WORKDIR /tmp
# Install aMule
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing amule
# Install a modern Web UI
RUN cd /usr/share/amule/webserver && \
wget -O AmuleWebUI-Reloaded.zip https://github.com/MatteoRagni/AmuleWebUI-Reloaded/archive/refs/heads/master.zip && \
unzip AmuleWebUI-Reloaded.zip && \
mv AmuleWebUI-Reloaded-master AmuleWebUI-Reloaded && \
rm -rf AmuleWebUI-Reloaded.zip AmuleWebUI-Reloaded/doc-images
FROM alpine:edge
LABEL maintainer="ngosang@hotmail.es"
# Install packages
RUN apk --no-cache add libgcc libpng libstdc++ libupnp libintl musl zlib wxgtk-base tzdata pwgen sudo && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing crypto++
# Copy binaries
COPY --from=builder /usr/bin/alcc /usr/bin/amulecmd /usr/bin/amuled /usr/bin/amuleweb /usr/bin/ed2k /usr/bin/
COPY --from=builder /usr/share/amule /usr/share/amule
# Check binaries are OK
RUN ldd /usr/bin/alcc && \
ldd /usr/bin/amulecmd && \
ldd /usr/bin/amuled && \
ldd /usr/bin/amuleweb && \
ldd /usr/bin/ed2k
# Add entrypoint
COPY entrypoint.sh /home/amule/entrypoint.sh
WORKDIR /home/amule
EXPOSE 4711/tcp 4712/tcp 4662/tcp 4665/udp 4672/udp
ENTRYPOINT ["/home/amule/entrypoint.sh"]
# HELP
#
# => Build Docker image
# docker build -t ngosang/amule:test .
#
# => Reference Alpine packages
# https://git.alpinelinux.org/aports/tree/testing/amule