Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dockerfile #1

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /cloudflared /bin/cloudflared
CMD ["/bin/cloudflared", "--logfile", "/var/log/cloudflared", "--pidfile", "/var/run/cloudflared.pid", "--no-autoupdate", "proxy-dns", "--address", "0.0.0.0", "--port", "53"]

5 changes: 2 additions & 3 deletions Dockerfile.arm
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# syntax=docker/dockerfile:1
FROM arm32v7/alpine:3.12 as builder
FROM arm32v7/alpine:latest as builder
RUN apk --no-cache add ca-certificates curl
WORKDIR /root/
RUN curl -L -o /cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm
RUN chmod +x /cloudflared

FROM arm32v7/alpine:3.12
FROM arm32v7/alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /cloudflared /bin/cloudflared
CMD ["/bin/cloudflared", "--logfile", "/var/log/cloudflared", "--pidfile", "/var/run/cloudflared.pid", "--no-autoupdate", "proxy-dns", "--address", "0.0.0.0", "--port", "53"]

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ Dockerized `cloudflared` binary for various environments.

## AMD64

```
```sh
docker run --restart always -d -p 192.168.129.105:53:53/udp ghcr.io/blackstar257/docker-cloudflared/image:latest
```

## ARM32

Uses Alpine v3.12 due to changes in 3.13. https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#time64_requirements

```
```sh
docker run --restart always -d -p 192.168.129.105:53:53/udp ghcr.io/blackstar257/docker-cloudflared/image:arm32
```
```
Loading