mirror of https://github.com/w4/bin.git
15 lines
293 B
Docker
15 lines
293 B
Docker
FROM rust:1-slim AS builder
|
|
|
|
COPY . /sources
|
|
WORKDIR /sources
|
|
RUN cargo build --release
|
|
RUN chown nobody:nogroup /sources/target/release/bin
|
|
|
|
|
|
FROM debian:bullseye-slim
|
|
COPY --from=builder /sources/target/release/bin /pastebin
|
|
|
|
USER nobody
|
|
EXPOSE 8000
|
|
ENTRYPOINT ["/pastebin", "0.0.0.0:8000"]
|