forked from gangefors/docker-airdcpp-webclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (39 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
44 lines (39 loc) · 1.26 KB
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
ARG distro=stable-slim
FROM debian:${distro}
ARG dl_url="https://web-builds.airdcpp.net/stable/airdcpp_latest_master_armhf_portable.tar.gz"
RUN installDeps=' \
curl \
gnupg \
' \
&& runtimeDeps=' \
ca-certificates \
locales \
openssl \
' \
# Install runtime dependencies
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${installDeps} ${runtimeDeps} \
# Install node.js to enable airdcpp extensions
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
# Setup application
&& mkdir /Downloads /Share \
&& echo "Downloading ${dl_url}..." \
&& curl --progress-bar ${dl_url} | tar -xz -C / \
# Cleanup
&& apt-get purge --autoremove -y ${installDeps} \
&& rm -rf /var/lib/apt/lists/*
# Configure locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen && dpkg-reconfigure -f noninteractive locales
WORKDIR /airdcpp-webclient
COPY dcppboot.xml dcppboot.xml
COPY .airdcpp/ /.airdcpp
RUN chmod -R ugo+w /.airdcpp
VOLUME /.airdcpp
EXPOSE 5600 5601
ENTRYPOINT ["./airdcppd"]