15 lines
369 B
Docker
15 lines
369 B
Docker
FROM rust:1.75-alpine3.18 as build
|
|
|
|
RUN apk add --no-cache musl-dev upx
|
|
|
|
WORKDIR /opt/build
|
|
COPY . .
|
|
|
|
RUN cargo install --path .
|
|
RUN strip /usr/local/cargo/bin/blek-online-server && upx /usr/local/cargo/bin/blek-online-server
|
|
|
|
FROM alpine:3.18
|
|
|
|
COPY --from=build /usr/local/cargo/bin/blek-online-server /usr/bin/blek-online-server
|
|
|
|
CMD [ "/usr/bin/blek-online-server" ] |