dockerize
This commit is contained in:
parent
9bde794c14
commit
eeed3bacbf
|
@ -0,0 +1,2 @@
|
||||||
|
Dockerfile
|
||||||
|
target
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Build
|
||||||
|
FROM rust:alpine as build
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN apk add --no-cache musl-dev upx
|
||||||
|
RUN cargo b -r
|
||||||
|
RUN strip target/release/miniqr && upx --best target/release/miniqr
|
||||||
|
|
||||||
|
# Deploy
|
||||||
|
FROM scratch
|
||||||
|
LABEL maintainer='blek! <me@blek.codes>'
|
||||||
|
|
||||||
|
COPY --from=build /build/target/release/miniqr /miniqr
|
||||||
|
|
||||||
|
CMD [ "/miniqr" ]
|
Loading…
Reference in New Issue