mirror of
https://github.com/chancehudson/freedit-docker.git
synced 2026-01-11 02:47:56 -05:00
18 lines
411 B
Docker
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"]
|