-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (48 loc) · 1.5 KB
/
Dockerfile
File metadata and controls
53 lines (48 loc) · 1.5 KB
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
53
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.23
# set version label
ARG BUILD_DATE
ARG VERSION
ARG SEALSKIN_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
ENV HOME=/config
# install software
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --upgrade --virtual=build-dependencies \
python3-dev \
py3-pip \
zip && \
echo "**** install packages ****" && \
apk add --no-cache \
caddy \
openssl \
python3 && \
echo "**** install sealskin ****" && \
mkdir /opt/sealskin && \
if [ -z ${SEALSKIN_VERSION+x} ]; then \
SEALSKIN_VERSION=$(curl -sX GET "https://api.github.com/repos/selkies-project/sealskin/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/sealskin.tar.gz -L \
"https://github.com/selkies-project/sealskin/archive/${SEALSKIN_VERSION}.tar.gz" && \
tar xf \
/tmp/sealskin.tar.gz -C \
/opt/sealskin --strip-components=1 && \
pip3 install -r /opt/sealskin/server/requirements.txt --break-system-packages && \
cd /opt/sealskin/browser_extension && \
zip -r /sealskin.zip * && \
echo "**** cleanup ****" && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
apk del --purge \
build-dependencies && \
rm -rf \
$HOME/.cache \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8000 8443
VOLUME /config /storage