Compare commits
3 Commits
v0.1.1
...
decrease-d
Author | SHA1 | Date | |
---|---|---|---|
dbc672fe85 | |||
6459152833 | |||
86f00a4c9c |
@ -10,4 +10,4 @@ env_logger = "0.10.0"
|
|||||||
log = "0.4.17"
|
log = "0.4.17"
|
||||||
http = "0.2.8"
|
http = "0.2.8"
|
||||||
serde = { version = "1.0.126", features = ["derive"] }
|
serde = { version = "1.0.126", features = ["derive"] }
|
||||||
reqwest = { version = "0.11", features = ["json", "blocking"] }
|
reqwest = { version = "0.11", features = ["json", "blocking", "rustls"] }
|
||||||
|
11
Dockerfile
11
Dockerfile
@ -1,13 +1,16 @@
|
|||||||
FROM rust:1.66.1-alpine3.17 as builder
|
FROM rust:1.67.1-slim-buster as builder
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN apk update && apk add --no-cache libressl-dev musl-dev gcc
|
RUN apt-get update &&\
|
||||||
|
apt-get install -y libssl-dev gcc musl pkg-config
|
||||||
COPY ./ .
|
COPY ./ .
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.17.1
|
FROM debian:stable
|
||||||
COPY --from=builder /src/target/release/dudo /bin/dudo
|
COPY --from=builder /src/target/release/dudo /bin/dudo
|
||||||
RUN apk update && apk add --no-cache libressl-dev libc6-compat
|
RUN apt-get update &&\
|
||||||
|
apt-get install openssl ca-certificates &&\
|
||||||
|
apt-get clean
|
||||||
RUN chmod +x /bin/dudo
|
RUN chmod +x /bin/dudo
|
||||||
WORKDIR /workdir
|
WORKDIR /workdir
|
||||||
ENTRYPOINT ["/bin/dudo"]
|
ENTRYPOINT ["/bin/dudo"]
|
||||||
|
9
dockerfiles/Dockerfile-nobase
Normal file
9
dockerfiles/Dockerfile-nobase
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM debian:stable
|
||||||
|
COPY ./target/release/dudo /bin/dudo
|
||||||
|
RUN apt-get update &&\
|
||||||
|
apt-get install openssl ca-certificates &&\
|
||||||
|
apt-get clean
|
||||||
|
RUN chmod +x /bin/dudo
|
||||||
|
WORKDIR /workdir
|
||||||
|
ENTRYPOINT ["/bin/dudo"]
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use handlebars::Handlebars;
|
use handlebars::Handlebars;
|
||||||
use http::{StatusCode};
|
use http::StatusCode;
|
||||||
use log::{error, info};
|
use log::{error, info};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user