Files
freedit-docker/Dockerfile
2024-11-29 11:18:42 -08:00

18 lines
411 B
Docker

FROM rust:1-slim-bookworm AS builder
RUN apt update && apt install -y git build-essential
RUN git clone https://github.com/psexperiments/freedit.git /tmp/freedit
WORKDIR /tmp/freedit
RUN cargo build -r
FROM rust:1-slim-bookworm
COPY --from=builder /tmp/freedit/target/release/freedit /usr/local/bin/freedit
RUN mkdir /data && mkdir /static
COPY ./config.toml /config.toml
CMD ["freedit", "/config.toml"]