-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (21 loc) · 847 Bytes
/
Dockerfile
File metadata and controls
23 lines (21 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# syntax=docker/dockerfile:1
FROM docker.io/library/python:3.14-alpine3.23 AS builder
ARG VERSION
RUN \
apk add --no-cache \
curl \
grep \
sed \
tar \
&& \
curl -fsSL "https://github.com/themepark-dev/theme.park/archive/${VERSION}.tar.gz" \
| tar xzf - -C /tmp --strip-components 1 \
&& python /tmp/themes.py \
&& grep -rl 'https://theme-park.dev' /tmp | xargs sed -i 's|https\://theme-park.dev||g'
FROM ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine
ENV NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE=1
COPY --from=builder --chown=nginx:nginx /tmp/index.html /usr/share/nginx/html/
COPY --from=builder --chown=nginx:nginx /tmp/css /usr/share/nginx/html/css/
COPY --from=builder --chown=nginx:nginx /tmp/resources /usr/share/nginx/html/resources/
USER nginx
WORKDIR /usr/share/nginx/html