forked from pterodactyl/daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (16 loc) · 969 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:10-alpine
LABEL author="Michael Parker" maintainer="[email protected]"
COPY . /srv/daemon
WORKDIR /srv/daemon
RUN apk add --no-cache openssl make gcc g++ python linux-headers paxctl gnupg tar zip unzip curl coreutils zlib supervisor jq \
&& npm install --production \
&& addgroup -S pterodactyl && adduser -S -D -H -G pterodactyl -s /bin/false pterodactyl \
&& apk del --no-cache make gcc g++ python linux-headers paxctl gnupg \
&& curl -sSL https://github.com/pterodactyl/sftp-server/releases/download/v1.0.4/sftp-server > /srv/daemon/sftp-server \
&& mkdir -p /var/log/supervisord /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 \
&& chmod +x /srv/daemon/sftp-server \
&& chmod +x /srv/daemon/.docker/entrypoint.sh \
&& cp /srv/daemon/.docker/supervisord.conf /etc/supervisord.conf
EXPOSE 8080
ENTRYPOINT [ "/bin/ash", "/srv/daemon/.docker/entrypoint.sh" ]
CMD [ "supervisord", "-n", "-c", "/etc/supervisord.conf" ]