aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
blob: 30802e38d16f03f167ae3c8625f4787ccc9e1652 (plain)
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
# ------------------------------------------------------------------------------
# Cargo Build Stage
# ------------------------------------------------------------------------------

FROM docker.io/rust:1.52-alpine as cargo-build

RUN rustup default nightly && rustup update

WORKDIR /work

COPY . .

RUN apk add --no-cache musl-dev
RUN cargo build --release

# ------------------------------------------------------------------------------
# Final Stage
# ------------------------------------------------------------------------------

FROM alpine:3.13

COPY --from=cargo-build /work/target/release/catinator /usr/local/bin

ENV CATINATOR_CONFIG="/config.toml"

CMD ["/usr/local/bin/catinator"]