File tree Expand file tree Collapse file tree 6 files changed +34
-31
lines changed Expand file tree Collapse file tree 6 files changed +34
-31
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.22-alpine3.19 AS builder
2
- # hadolint ignore=DL3018
3
- RUN apk add --no-cache alpine-sdk ca-certificates curl
4
-
5
- WORKDIR /app
6
- COPY go.* ./
7
- RUN go mod download
8
- COPY . .
9
- RUN make vendor build
10
-
11
1
FROM alpine:3.19
12
-
13
- COPY --from=builder /app/reverse-http /reverse-http
14
-
2
+ RUN apk add ca-certificates
3
+ COPY reverse-http /
15
4
USER 65532:65532
16
5
ENTRYPOINT ["/reverse-http" ]
Original file line number Diff line number Diff line change
1
+ FROM golang:1.22-alpine3.19 AS builder
2
+ # hadolint ignore=DL3018
3
+ RUN apk add --no-cache alpine-sdk ca-certificates curl
4
+
5
+ WORKDIR /app
6
+ COPY go.* ./
7
+ RUN go mod download
8
+ COPY . .
9
+ RUN make vendor build
10
+
11
+ FROM alpine:3.19
12
+ COPY --from=builder /app/reverse-http /reverse-http
13
+ USER 65532:65532
14
+ ENTRYPOINT ["/reverse-http"]
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
18
18
hostname : proxy-1
19
19
build :
20
20
context : .
21
- dockerfile : Dockerfile
21
+ dockerfile : Dockerfile.develop
22
22
command :
23
23
- proxy
24
24
- ' --agent-server.listen-address=:4242'
@@ -41,7 +41,7 @@ services:
41
41
hostname : proxy-2
42
42
build :
43
43
context : .
44
- dockerfile : Dockerfile
44
+ dockerfile : Dockerfile.develop
45
45
command :
46
46
- proxy
47
47
- ' --agent-server.listen-address=:4242'
@@ -64,7 +64,7 @@ services:
64
64
hostname : agent-4711
65
65
build :
66
66
context : .
67
- dockerfile : Dockerfile
67
+ dockerfile : Dockerfile.develop
68
68
command :
69
69
- agent
70
70
- ' --agent-client.server-address=proxy-lb:4242'
@@ -78,7 +78,7 @@ services:
78
78
hostname : agent-4712
79
79
build :
80
80
context : .
81
- dockerfile : Dockerfile
81
+ dockerfile : Dockerfile.develop
82
82
command :
83
83
- agent
84
84
- ' --agent-client.server-address=proxy-lb:4242'
@@ -92,7 +92,7 @@ services:
92
92
hostname : lb-1
93
93
build :
94
94
context : .
95
- dockerfile : Dockerfile
95
+ dockerfile : Dockerfile.develop
96
96
command :
97
97
- lb
98
98
- ' --http-proxy.listen-address=:3128'
@@ -109,7 +109,7 @@ services:
109
109
hostname : lb-2
110
110
build :
111
111
context : .
112
- dockerfile : Dockerfile
112
+ dockerfile : Dockerfile.develop
113
113
command :
114
114
- lb
115
115
- ' --http-proxy.listen-address=:3128'
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
18
18
hostname : proxy-1
19
19
build :
20
20
context : .
21
- dockerfile : Dockerfile
21
+ dockerfile : Dockerfile.develop
22
22
command :
23
23
- proxy
24
24
- ' --agent-server.listen-address=:4242'
@@ -38,7 +38,7 @@ services:
38
38
hostname : proxy-2
39
39
build :
40
40
context : .
41
- dockerfile : Dockerfile
41
+ dockerfile : Dockerfile.develop
42
42
command :
43
43
- proxy
44
44
- ' --agent-server.listen-address=:4242'
@@ -58,7 +58,7 @@ services:
58
58
hostname : agent-4711
59
59
build :
60
60
context : .
61
- dockerfile : Dockerfile
61
+ dockerfile : Dockerfile.develop
62
62
command :
63
63
- agent
64
64
- ' --agent-client.server-address=proxy-lb:4242'
@@ -72,7 +72,7 @@ services:
72
72
hostname : agent-4712
73
73
build :
74
74
context : .
75
- dockerfile : Dockerfile
75
+ dockerfile : Dockerfile.develop
76
76
command :
77
77
- agent
78
78
- ' --agent-client.server-address=proxy-lb:4242'
@@ -86,7 +86,7 @@ services:
86
86
hostname : lb-1
87
87
build :
88
88
context : .
89
- dockerfile : Dockerfile
89
+ dockerfile : Dockerfile.develop
90
90
command :
91
91
- lb
92
92
- ' --http-proxy.listen-address=:3128'
@@ -99,7 +99,7 @@ services:
99
99
hostname : lb-2
100
100
build :
101
101
context : .
102
- dockerfile : Dockerfile
102
+ dockerfile : Dockerfile.develop
103
103
command :
104
104
- lb
105
105
- ' --http-proxy.listen-address=:3128'
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
hostname : proxy
6
6
build :
7
7
context : .
8
- dockerfile : Dockerfile
8
+ dockerfile : Dockerfile.develop
9
9
command :
10
10
- proxy
11
11
- ' --agent-server.listen-address=:4242'
@@ -23,7 +23,7 @@ services:
23
23
hostname : agent-4711
24
24
build :
25
25
context : .
26
- dockerfile : Dockerfile
26
+ dockerfile : Dockerfile.develop
27
27
command :
28
28
- agent
29
29
- ' --agent-client.server-address=proxy:4242'
@@ -37,7 +37,7 @@ services:
37
37
hostname : agent-4712
38
38
build :
39
39
context : .
40
- dockerfile : Dockerfile
40
+ dockerfile : Dockerfile.develop
41
41
command :
42
42
- agent
43
43
- ' --agent-client.server-address=proxy:4242'
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
hostname : proxy
6
6
build :
7
7
context : .
8
- dockerfile : Dockerfile
8
+ dockerfile : Dockerfile.develop
9
9
command :
10
10
- proxy
11
11
- ' --agent-server.listen-address=:4242'
@@ -22,7 +22,7 @@ services:
22
22
hostname : agent-4711
23
23
build :
24
24
context : .
25
- dockerfile : Dockerfile
25
+ dockerfile : Dockerfile.develop
26
26
command :
27
27
- agent
28
28
- ' --agent-client.server-address=proxy:4242'
@@ -34,7 +34,7 @@ services:
34
34
hostname : agent-4712
35
35
build :
36
36
context : .
37
- dockerfile : Dockerfile
37
+ dockerfile : Dockerfile.develop
38
38
command :
39
39
- agent
40
40
- ' --agent-client.server-address=proxy:4242'
You can’t perform that action at this time.
0 commit comments