Compare commits
3 Commits
1025cacb27
...
cd7a5329f9
Author | SHA1 | Date |
---|---|---|
Dmitry Belyaev | cd7a5329f9 | |
Dmitry Belyaev | 281a87c662 | |
Dmitry Belyaev | f902d467ea |
|
@ -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"]
|
||||
|
2
LICENSE
2
LICENSE
|
@ -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:
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue