Skip to content

Commit 1f9c222

Browse files
committed
updated Dockerfile
1 parent 6408819 commit 1f9c222

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

Dockerfile

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
FROM golang:alpine AS builder
1+
FROM golang:1.18-alpine As builder
22

3-
RUN apk add --no-cache git && CGO_ENABLED=0 GOOS=linux go get github.com/alash3al/httpsify
4-
RUN apk add -U --no-cache ca-certificates
3+
WORKDIR /httpsify/
54

6-
FROM scratch
7-
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
8-
COPY --from=builder /go/bin/httpsify /go/bin/httpsify
5+
RUN apk update && apk add git
96

10-
ENTRYPOINT ["/go/bin/httpsify"]
7+
COPY go.mod go.sum ./
8+
9+
RUN go mod download
10+
11+
COPY . .
12+
13+
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o /usr/bin/httpsify ./cmd/
14+
15+
FROM alpine
16+
17+
WORKDIR /httpsify/
18+
19+
COPY --from=builder /usr/bin/httpsify /usr/bin/httpsify
20+
21+
CMD httpsify

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A `Let'sEncrypt` based reverse proxy, that will automatically generate & ren
88
### # Using Docker
99
> Just run the following and then have fun !!
1010
```bash
11-
$ docker run --network host -v ~/.httpsify:/.httpsify -p 443:443 alash3al/httpsify
11+
$ docker run --network host -v ~/.httpsify:/.httpsify -p 443:443 ghcr.io/alash3al/httpsify
1212
```
1313

1414
## # From Binaries

0 commit comments

Comments
 (0)