fastcloud/Dockerfile

22 lines
422 B
Docker
Raw Permalink Normal View History

2022-03-02 13:56:42 -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
2022-03-02 13:38:49 -05:00
2022-03-02 13:56:42 -05:00
FROM debian:buster-slim
WORKDIR /app
COPY --from=builder /build/target/release/fastcloud /app/fastcloud
RUN mkdir /app/service
COPY ./templates/ /app/templates
ENV FASTCLOUD_DIR /app/service
2022-03-02 13:38:49 -05:00
CMD [ "/app/fastcloud" ]