-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.manager
52 lines (43 loc) · 1.6 KB
/
Dockerfile.manager
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
FROM debian:bookworm-slim
ARG FLAMENCO_VERSION=3.6
# Curl basically never changes
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# I want to keep these stages separate so I don't have to re-download both.
# hadolint ignore=DL3059
RUN mkdir -p /app /config /data \
&& curl "https://flamenco.blender.org/downloads/flamenco-${FLAMENCO_VERSION}-linux-amd64.tar.gz" \
-o /app/flamenco.tar.gz
# Download experimental OptiX script for render pipeline
# hadolint ignore=DL3059
RUN mkdir -p /app/scripts \
&& curl "https://flamenco.blender.org/third-party-jobs/cycles-optix-gpu/cycles_optix_gpu.js" \
-o /app/scripts/cycles_optix_gpu.js
# hadolint ignore=DL3059
RUN tar -xf flamenco.tar.gz --strip-components=1 \
&& rm -f \
/app/*.md \
/app/LICENSE \
/app/flamenco-worker \
/app/flamenco.tar.gz \
&& ln -s /config/flamenco-manager.yaml /app/flamenco-manager.yaml
# NOTE: Clean up unnecessary packages to reduce image size.
# && apt-get remove -y \
# curl \
# ca-certificates \
# && apt-get autoremove -y \
# && apt-get clean
# TODO: Use system FFmpeg instead of bundled one to gain GPU acceleration.
# && apt-get install -y --no-install-recommends ffmpeg \
# && rm -f tools/ffmpeg-linux-amd64 \
# && ln -s "$(which ffmpeg)" /app/tools/ffmpeg-linux-amd64
CMD [ "/app/flamenco-manager" ]
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD curl -f http://localhost:80/ || exit 1