-
Notifications
You must be signed in to change notification settings - Fork 2
/
alpine.Dockerfile
52 lines (47 loc) · 1.11 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
52
# syntax=docker/dockerfile:1
FROM alpine:3.18
# OS environment variables
ENV HOME="/root" \
TZ="Etc/UTC" \
LANG="en_US.UTF-8" \
LANGUAGE="en_US:en" \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME="0" \
S6_VERBOSITY="1" \
# stash environment variables
STASH_PORT="9999" \
STASH_GENERATED="/generated/generated" \
STASH_CACHE="/generated/cache" \
STASH_CONFIG_FILE="/config/config.yaml" \
# python env
PIP_INSTALL_TARGET="/pip-install" \
PIP_CACHE_DIR="/pip-install/cache" \
PYTHONPATH=${PIP_INSTALL_TARGET}
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
bash \
ca-certificates \
curl \
ffmpeg \
python3 \
py3-pip \
s6-overlay \
shadow \
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 \
/app \
/config \
/defaults && \
echo "**** cleanup ****"
COPY stash/root/ /
# add stash
COPY --from=stashapp/stash /usr/bin/stash /app/stash
VOLUME /pip-install
EXPOSE 9999
ENTRYPOINT ["/init"]