ocypod 0.6.0

Ocypod is a Redis-backed service for orchestrating background jobs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# Statically compile with optimisations in the build image
FROM ekidd/rust-musl-builder:1.48.0 AS builder
COPY . ./
RUN sudo chown -R rust:rust /home/rust && cargo fetch
RUN cargo build --release

# Copy static binary from build image into minimal Debian-based image
FROM alpine:latest
COPY --from=builder \
    /home/rust/src/target/x86_64-unknown-linux-musl/release/ocypod-server \
    /usr/local/bin/
EXPOSE 8023
ENTRYPOINT ["/usr/local/bin/ocypod-server"]