Merge branch 'actix'
This commit is contained in:
commit
e6642a7a94
13 changed files with 1868 additions and 1259 deletions
|
@ -1,17 +1,16 @@
|
|||
FROM rust:1.34.2-slim-stretch AS builder
|
||||
RUN rustup install nightly-x86_64-unknown-linux-gnu
|
||||
FROM rust:1-slim AS builder
|
||||
|
||||
RUN apt update && apt install -y libclang-dev
|
||||
|
||||
COPY . /sources
|
||||
WORKDIR /sources
|
||||
RUN cargo +nightly build --release
|
||||
RUN cargo build --release
|
||||
RUN chown nobody:nogroup /sources/target/release/bin
|
||||
|
||||
|
||||
FROM debian:stretch-slim
|
||||
FROM debian:bullseye-slim
|
||||
COPY --from=builder /sources/target/release/bin /pastebin
|
||||
|
||||
USER nobody
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT ["/pastebin"]
|
||||
ENTRYPOINT ["/pastebin", "0.0.0.0:8000"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue