Merge branch 'actix'

This commit is contained in:
Jordan Doyle 2022-03-14 22:46:33 +00:00
commit e6642a7a94
No known key found for this signature in database
GPG key ID: 1EA6BAE6F66DC49A
13 changed files with 1868 additions and 1259 deletions

View file

@ -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"]