-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
86 lines (74 loc) · 1.91 KB
/
Dockerfile
File metadata and controls
86 lines (74 loc) · 1.91 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM ghcr.io/linuxserver/baseimage-alpine:edge AS buildstage
ARG SL_RELEASE
RUN \
echo "**** install build packages ****" && \
apk add \
nodejs \
npm \
p7zip \
zip
RUN \
echo "**** grab simplelogin ****" && \
mkdir /simplelogin && \
if [ -z ${SL_RELEASE+x} ]; then \
SL_RELEASE=$(curl -sX GET "https://api.github.com/repos/simple-login/app/releases/latest" \
| jq -r '. | .tag_name'); \
fi && \
curl -o \
/tmp/simplelogin.tar.gz -L \
"https://github.com/simple-login/app/archive/${SL_RELEASE}.tar.gz" && \
tar xf \
/tmp/simplelogin.tar.gz -C \
/simplelogin/ --strip-components=1
RUN \
echo "**** build simplelogin ****" && \
cd /simplelogin/static && \
npm ci
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="quietsy"
COPY --from=buildstage /simplelogin/ /code/
WORKDIR /code
ENV PATH="$HOME/.local/bin:/code/.venv/bin:$PATH"
ENV CMAKE_POLICY_VERSION_MINIMUM="3.5"
# Install deps
RUN \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
clang \
gcc \
git \
libre2-dev \
ninja-build \
pkg-config && \
curl -o /tmp/uv-installer.sh -L https://astral.sh/uv/install.sh && \
sh /tmp/uv-installer.sh && \
uv python install `cat .python-version` && \
uv sync --no-dev --locked --no-cache && \
echo "**** install runtime packages ****" && \
apt-get install -y \
gnupg \
libre2-10 && \
echo "**** cleanup ****" && \
apt-get purge -y \
clang \
gcc \
git \
libre2-dev \
ninja-build \
pkg-config && \
apt-get autoremove -y && \
apt-get autoclean -y && \
rm -rf \
/var/lib/apt/lists \
$HOME/.cache \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 7777
VOLUME /config