2023-01-17 21:35:35 +00:00
|
|
|
FROM rust:1.66.1-alpine3.17 as builder
|
|
|
|
WORKDIR /src
|
|
|
|
RUN apk update && apk add --no-cache libressl-dev musl-dev gcc
|
|
|
|
COPY ./ .
|
|
|
|
RUN cargo build --release
|
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:3.17.1
|
2023-02-09 11:06:05 +00:00
|
|
|
COPY --from=builder /src/target/release/dudo /bin/dudo
|
2023-01-18 12:28:57 +00:00
|
|
|
RUN apk update && apk add --no-cache libressl-dev libc6-compat
|
2023-02-09 11:06:05 +00:00
|
|
|
RUN chmod +x /bin/dudo
|
2023-01-17 21:35:35 +00:00
|
|
|
WORKDIR /workdir
|
2023-02-09 11:06:05 +00:00
|
|
|
ENTRYPOINT ["/bin/dudo"]
|