forked from feederbox826/stash-s6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alpine.Dockerfile
51 lines (46 loc) · 1.09 KB
/
alpine.Dockerfile
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
47
48
49
50
51
# syntax=docker/dockerfile:1
FROM alpine:3
# OS environment variables
ENV HOME="/root" \
TZ="Etc/UTC" \
LANG="en_US.UTF-8" \
LANGUAGE="en_US:en" \
# stash environment variables
STASH_CONFIG_FILE="/config/config.yml" \
USER="stash" \
# python env
PIP_INSTALL_TARGET="/pip-install" \
PIP_CACHE_DIR="/pip-install/cache" \
PYTHONPATH=${PIP_INSTALL_TARGET} \
# hardware acceleration env
HWACCEL="NONE" \
SKIP_NVIDIA_PATCH="true" \
# Logging
LOGGER_LEVEL="1"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
bash \
ca-certificates \
curl \
ffmpeg \
python3 \
py3-pip \
shadow \
su-exec \
tzdata \
vips-tools \
wget \
yq && \
echo "**** create stash user and make our folders ****" && \
useradd -u 1000 -U -d /config -s /bin/false stash && \
usermod -G users stash && \
mkdir -p \
/config \
/defaults && \
echo "**** cleanup ****"
COPY --chmod=755 stash/root/ /
COPY --from=stashapp/stash --chmod=755 /usr/bin/stash /app/stash
VOLUME /pip-install
EXPOSE 9999
CMD ["/bin/bash", "/opt/entrypoint.sh"]