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
43 lines (38 loc) · 1.23 KB
/
Copy pathDockerfile
File metadata and controls
43 lines (38 loc) · 1.23 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
FROM debian:stable-slim
ARG dl_url=http://web-builds.airdcpp.net/stable/airdcpp_2.6.1_webui-2.6.1_64-bit_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_8.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
# Setup application
&& mkdir /Downloads /Share \
&& echo "Downloading ${dl_url}..." \
&& curl -# $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"]