forked from Inrixia/Floatplane-Downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (38 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
46 lines (38 loc) · 753 Bytes
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
FROM alpine
# Env
ENV GIT_URL "https://github.com/Inrixia/Floatplane-Downloader"
ENV JUST_RUN N
ENV CONFIG_PATH="/config"
ENV USERNAME="$USERNAME"
ENV PASSWORD="$PASSWORD"
ENV REPEAT_SCRIPT="5m"
ENV MEDIA_PATH="/media"
ENV UID=1000
ENV GID=1000
# Copy
COPY rootfs /
VOLUME /config
# Install required packages
RUN apk add -U build-base \
libssl1.0 \
curl \
git \
su-exec \
s6 \
python \
nodejs \
nodejs-npm \
ffmpeg \
# Set permissions
&& chmod a+x /usr/local/bin/* /etc/s6.d/*/* \
# Cleanup
&& apk del build-base \
&& rm -rf /tmp/* /var/cache/apk/*
RUN mkdir -p /floatplane/
WORKDIR /floatplane/
# install app dependencies + app
COPY package.json .
RUN npm install
COPY . .
# Execute
CMD ["run.sh"]