mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-06 08:06:53 +08:00
DNS server Dockerfile: CMD → ENTRYPOINT
`ENTRYPOINT` [is more appropriate](https://codewithyury.com/docker-run-vs-cmd-vs-entrypoint/): > ENTRYPOINT configures a container that will run as an executable Which is exactly how I think the container should work for new people. Yes, I'm screwing over the existing users. Sorry.
This commit is contained in:
@@ -93,7 +93,6 @@ docker run \
|
||||
--rm \
|
||||
-p 53:53/udp \
|
||||
cunnie/sslip.io-dns-server \
|
||||
/usr/sbin/sslip.io-dns-server \
|
||||
-nameservers jammy.nono.io \
|
||||
-addresses jammy.nono.io=10.9.9.114,jammy.nono.io=2601:646:100:69f0:0:ff:fe00:72
|
||||
```
|
||||
|
@@ -30,7 +30,7 @@ RUN curl -L https://github.com/cunnie/sslip.io/releases/download/2.6.1/sslip.io-
|
||||
-o /usr/sbin/sslip.io-dns-server; \
|
||||
chmod 755 /usr/sbin/sslip.io-dns-server
|
||||
|
||||
CMD ["/usr/sbin/sslip.io-dns-server"]
|
||||
ENTRYPOINT ["/usr/sbin/sslip.io-dns-server"]
|
||||
|
||||
# DNS listens on port 53 UDP
|
||||
# The `EXPOSE` directive doesn't do much in our case. We use it for documentation.
|
||||
|
Reference in New Issue
Block a user