fserve/Dockerfile

24 lines
415 B
Docker
Raw Normal View History

2022-11-15 22:44:47 -05:00
FROM rust:1.59 as builder
WORKDIR /build
COPY ./src/ /build/src
COPY ./Cargo.toml /build/Cargo.toml
RUN rustup update nightly && rustup default nightly && \
cargo clean && cargo build --release
FROM debian:buster-slim
WORKDIR /app
2022-11-15 22:56:05 -05:00
COPY --from=builder /build/target/release/fserve /app/fserve
2022-11-15 22:44:47 -05:00
RUN mkdir /app/service
COPY ./templates/ /app/templates
ENV FSERVE_DIR /app/service
CMD [ "/app/fastcloud" ]