Commit 05c0c64 1 parent e53da85 commit 05c0c64 Copy full SHA for 05c0c64
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ WORKDIR /workspace
10
10
11
11
# Building
12
12
COPY . .
13
- RUN go build -v -o ftpserver
13
+ RUN CGO_ENABLED=0 go build -mod=readonly -ldflags= '-w -s' -v -o ftpserver
14
14
15
15
# Preparing the final image
16
- FROM alpine:3.16.2
16
+ FROM scratch
17
17
WORKDIR /app
18
18
EXPOSE 2121-2130
19
19
COPY --from=builder /workspace/ftpserver /bin/ftpserver
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ WORKDIR /workspace
10
10
11
11
# Building
12
12
COPY . .
13
- RUN CGO_ENABLED=0 go build -mod=readonly -ldflags='-w -s' -v -o ftpserver
13
+ RUN go build -v -o ftpserver
14
14
15
15
# Preparing the final image
16
- FROM scratch
16
+ FROM alpine:3.16.2
17
17
WORKDIR /app
18
18
EXPOSE 2121-2130
19
19
COPY --from=builder /workspace/ftpserver /bin/ftpserver
You can’t perform that action at this time.
0 commit comments