-
-
Notifications
You must be signed in to change notification settings - Fork 321
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 1.05 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
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 AS grab-stage
ARG MOD_VERSION
RUN \
apk add --no-cache --upgrade \
tar && \
mkdir -p /root/defaults/nginx/proxy-confs && \
if [[ -z "${MOD_VERSION}" ]]; then \
MOD_VERSION=$(curl -fsSL https://api.github.com/repos/linuxserver/reverse-proxy-confs/commits/master | jq -r '.sha'); \
fi && \
curl -o \
/tmp/proxy.tar.gz -L \
"https://github.com/linuxserver/reverse-proxy-confs/archive/${MOD_VERSION}.tar.gz" && \
tar xvf \
/tmp/proxy.tar.gz -C \
/root/defaults/nginx/proxy-confs \
--strip-components=1 \
--exclude=reverse*/.editorconfig \
--exclude=reverse*/.gitattributes \
--exclude=reverse*/.github \
--exclude=reverse*/.gitignore \
--exclude=reverse*/LICENSE
# copy local files
COPY root/ root/
ADD https://raw.githubusercontent.com/linuxserver/docker-swag/master/root/defaults/nginx/proxy.conf.sample /root/defaults/nginx/proxy.conf.sample
FROM scratch
LABEL maintainer="Roxedus"
# copy proxy-confs
COPY --from=grab-stage root/ /