Skip to content

Commit

Permalink
Merge pull request #1 from blackstar257/update
Browse files Browse the repository at this point in the history
update dockerfile
  • Loading branch information
blackstar257 committed Mar 26, 2024
2 parents 3177730 + 9b0d580 commit 4183bed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
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
```
```

0 comments on commit 4183bed

Please sign in to comment.