mirror of
https://github.com/ekzhang/bore.git
synced 2024-12-22 21:55:46 +07:00
c154a846f6
* Add a Dockerfile * Reduce image size from ~75MB to ~6MB * Add Dockerignore and README documentation * Add Docker build action to CI Co-authored-by: Eric Zhang <ekzhang1@gmail.com>
11 lines
218 B
Docker
11 lines
218 B
Docker
FROM rust:alpine as builder
|
|
WORKDIR /home/rust/src
|
|
RUN apk --no-cache add musl-dev
|
|
COPY . .
|
|
RUN cargo install --path .
|
|
|
|
FROM scratch
|
|
COPY --from=builder /usr/local/cargo/bin/bore .
|
|
USER 1000:1000
|
|
ENTRYPOINT ["./bore"]
|