This commit is contained in:
shimun 2020-09-26 20:54:58 +02:00
parent 92ae649cf6
commit 65fc17d331
Signed by: shimun
GPG Key ID: E81D8382DC2F971B
3 changed files with 332 additions and 260 deletions

574
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[package]
name = "brownpaper"
version = "0.2.0"
version = "0.3.0"
authors = ["shimun <shimun@shimun.net>"]
edition = "2018"
@ -16,7 +16,7 @@ rand = "0.4.2"
byteorder = "1.3.2"
chrono = "0.4.9"
sequoia-openpgp = "0.9.0"
sequoia-openpgp = "0.12.0"
lazy_static = "1.4.0"
c2-chacha = "0.2.2"
sha2 = "0.8.0"

View File

@ -1,9 +1,21 @@
FROM rust:1.41.0 as builder
COPY . /bp
RUN apt update
RUN apt install clang nettle-dev -y
RUN cargo install --path /bp --root /usr
FROM debian:buster-slim
VOLUME /snips
EXPOSE 3000
COPY bin/brownpaper /bin/
COPY --from=builder /usr/bin/brownpaper /bin/
WORKDIR /
ENTRYPOINT [ "/bin/brownpaper" ]