aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 08d0e87c5c647115abefc106bdaf352e3fb93d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.17.0

RUN apk add inkscape
RUN apk add cargo
RUN apk add npm

WORKDIR /root
ADD Cargo.toml Cargo.toml
ADD Cargo.lock Cargo.lock
RUN mkdir src && touch src/main.rs
RUN cargo fetch
RUN npm -g install svgo
ADD . .
ADD linja-pona-4.9.otf /usr/share/fonts/
RUN cargo build --release
EXPOSE 8000
ENV ROCKET_ADDRESS=0.0.0.0
CMD cargo run --release
HEALTHCHECK CMD wget --spider -S http://localhost:8000