You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
615 B

FROM rust
COPY Cargo.toml /app/Cargo.toml
RUN mkdir src && \
echo "fn main() {println!(\"if you see this, the build broke\")}" > src/ && \
cargo build --release && \
rm -r target/release/deps/bumblebee*
COPY src /app/src
RUN cargo build --release
RUN cp target/release/bumblebee /app/bumblebee
# -- #
COPY docker/ /
COPY docker/docker-entrypoint.d/ /docker-entrypoint.d
RUN chmod +x /
ENV CONFIG_PATH=/config/config.toml
VOLUME /config
VOLUME /data/input
VOLUME /data/output