online/server/Dockerfile

15 lines
369 B
Docker
Raw Permalink Normal View History

2024-01-07 03:30:43 +01:00
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" ]