Compare commits

...

3 Commits

Author SHA1 Message Date
Dmitry Belyaev cd7a5329f9 add docker-compose.yml 2023-02-28 20:29:51 +03:00
Dmitry Belyaev 281a87c662 add Dockerfile 2023-02-28 20:29:23 +03:00
Dmitry Belyaev f902d467ea fix LICENSE 2023-02-28 20:26:18 +03:00
3 changed files with 40 additions and 1 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM rust:1-alpine as build
# sys deps
RUN apk add --no-cache musl-dev libc-dev
# cache index
RUN cargo search doh-proxy
RUN cargo install doh-proxy --no-default-features
# -----------
FROM busybox:1-musl
COPY --from=build /usr/local/cargo/bin/doh-proxy /usr/local/bin/doh-proxy
EXPOSE 3000/tcp
CMD ["doh-proxy"]

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) <year> <copyright holders>
Copyright (c) 2023 Dmitry Belyaev
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

19
docker-compose.yml Executable file
View File

@ -0,0 +1,19 @@
version: "3"
services:
doh:
image: tmp/doh-proxy
build:
context: .
dockerfile: Dockerfile
#command: doh-proxy --help
container_name: doh-proxy
#restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
logging:
driver: json-file
options:
max-file: '5'
max-size: 10m