-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 800 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (19 loc) · 800 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
# Heavy build image
FROM rust:1.79-alpine3.20 as buildimage
RUN apk --no-cache add build-base curl bash
RUN rustup target add wasm32-unknown-unknown
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
RUN cargo binstall -y trunk
COPY ./ /srcdir
WORKDIR /srcdir
RUN make -B
# Lightweight Deployment image
FROM alpine:3.20
RUN apk --no-cache add ffmpeg
RUN apk --no-cache add font-dejavu
COPY --from=buildimage /srcdir/target/release/mediaserver-clipper /app/mediaserver-clipper
COPY --from=buildimage /srcdir/backend/static /app/static
COPY --from=buildimage /srcdir/backend/dist /app/dist
COPY --from=buildimage /srcdir/backend/Rocket.toml /app/Rocket.toml
WORKDIR /app
CMD ./mediaserver-clipper