forked from filebot/filebot-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.node
41 lines (28 loc) · 1.31 KB
/
Dockerfile.node
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
FROM rednoah/filebot
LABEL maintainer="Reinhard Pointner <[email protected]>"
ENV FILEBOT_NODE_VERSION="0.4.7"
ENV FILEBOT_NODE_URL="https://github.com/filebot/filebot-node/releases/download/$FILEBOT_NODE_VERSION/filebot-node_$FILEBOT_NODE_VERSION.tar.xz"
ENV FILEBOT_NODE_SHA256="479350e974e6f5fded581a54ff74c312a339a76ff86d9883261e94b051ca1a38"
ENV FILEBOT_NODE_HOME="/opt/filebot-node"
RUN set -eux \
## ** install dependencies
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/* \
## ** fetch generic package
&& curl -L -o /tmp/filebot-node.tar.xz "$FILEBOT_NODE_URL" \
&& echo "$FILEBOT_NODE_SHA256 */tmp/filebot-node.tar.xz" | sha256sum -c - \
## ** install application files
&& mkdir -p "$FILEBOT_NODE_HOME" \
&& tar --extract --file /tmp/filebot-node.tar.xz --directory "$FILEBOT_NODE_HOME" --verbose \
&& rm -v /tmp/filebot-node.tar.xz \
## ** delete generic launcher scripts
&& find "$FILEBOT_NODE_HOME" -executable -type f -delete
# install custom launcher scripts
COPY node /
ENV FILEBOT_NODE_AUTH="NONE"
ENV FILEBOT_NODE_HTTP="YES"
ENV FILEBOT_NODE_HTTP_PORT="5452"
EXPOSE $FILEBOT_NODE_HTTP_PORT
ENTRYPOINT ["/opt/bin/run-as-user", "/opt/bin/run", "/opt/filebot-node/start"]