-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 877 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 877 Bytes
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
# 1- Build Caddy modules
FROM --platform=$BUILDPLATFORM caddy:2.9.1-builder AS builder
ARG TARGETARCH
RUN GOARCH=$TARGETARCH xcaddy build \
--with github.com/caddyserver/replace-response
# 2 - Set up Caddy and the frontend built beforehand
FROM caddy:2.9.1-alpine
# Install the modules
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
# Set Caddy configuration
COPY docker/Caddyfile /etc/caddy/Caddyfile
# Install the React App
COPY ./build /srv
# Set default environment variables
ENV AUTH_ENABLED="true"
ENV AUTH_SECRET="\$2a\$14\$qRW8no8UDmSwIWM6KHwdRe1j/LMrxoP4NSM756RVodqeUq5HzG6t."
ENV PUBLIC_URL="https://localhost"
ENV APP_TITLE="Erin - TikTok feed for your own clips"
ENV AUTOPLAY_ENABLED="false"
ENV PROGRESS_BAR_POSITION="bottom"
ENV IGNORE_HIDDEN_PATHS="false"
ENV SCROLL_DIRECTION="vertical"
ENV USE_CUSTOM_SKIN="false"
ENV VIDEO_START_POSITION="start"