phundrak.com/Dockerfile
Lucien Cartier-Tilet a0236ba459
fix(backend): compilation
The project could not compile previously due to the musl and the
missing openssl libraries. This is now fixed.

Signed-off-by: Lucien Cartier-Tilet <lucien@phundrak.com>
2023-02-09 12:13:53 +01:00

14 lines
254 B
Docker

FROM rust:alpine
WORKDIR /app
COPY Cargo.toml /app/Cargo.toml
COPY Cargo.lock /app/Cargo.lock
COPY src /app/src
RUN apk update && apk add pkgconfig openssl-dev musl-dev
RUN cargo build --release
RUN cargo install --path .
ENTRYPOINT [ "phuncache" ]