3 Commits

Author SHA1 Message Date
dbc672fe85 Init branch 2023-02-12 20:39:41 +01:00
6459152833 Migrate the Dockerfile to Ubuntu 2023-02-12 20:13:42 +01:00
86f00a4c9c Add a rusttls feature 2023-02-12 14:06:31 +01:00
4 changed files with 18 additions and 6 deletions

View File

@ -10,4 +10,4 @@ env_logger = "0.10.0"
log = "0.4.17"
http = "0.2.8"
serde = { version = "1.0.126", features = ["derive"] }
reqwest = { version = "0.11", features = ["json", "blocking"] }
reqwest = { version = "0.11", features = ["json", "blocking", "rustls"] }

View File

@ -1,13 +1,16 @@
FROM rust:1.66.1-alpine3.17 as builder
FROM rust:1.67.1-slim-buster as builder
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 ./ .
RUN cargo build --release
FROM alpine:3.17.1
FROM debian:stable
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
WORKDIR /workdir
ENTRYPOINT ["/bin/dudo"]

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

View File

@ -1,6 +1,6 @@
use clap::Parser;
use handlebars::Handlebars;
use http::{StatusCode};
use http::StatusCode;
use log::{error, info};
use serde::{Deserialize, Serialize};