File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
# compile linux only
11
11
ENV GOOS=linux
12
+ ENV CGO_ENABLED=0
12
13
13
14
# build the binary with debug information removed
14
15
RUN go build -ldflags '-w -s' -a -installsuffix cgo -o server
@@ -24,7 +25,12 @@ COPY --from=build /app/server .
24
25
# copy player
25
26
COPY --from=build /app/player ./player
26
27
28
+ ENV OUTPUT=/data
29
+
27
30
# tell we are exposing our service
28
31
EXPOSE 8080 8081 8082
29
32
30
- ENTRYPOINT ["./server" ]
33
+ ENTRYPOINT []
34
+
35
+ # run it!
36
+ CMD ["./server" ]
Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ const (
18
18
19
19
func RegisterCommonFlags (f []cli.Flag ) []cli.Flag {
20
20
return append (f , cli.StringFlag {
21
- Name : OutputFlag + ", o" ,
22
- Usage : "output (local path)" ,
23
- Value : "out" ,
21
+ Name : OutputFlag + ", o" ,
22
+ Usage : "output (local path)" ,
23
+ Value : "out" ,
24
+ EnvVar : "OUTPUT" ,
24
25
})
25
26
}
26
27
You can’t perform that action at this time.
0 commit comments