refactor: use bin instead of build directory
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN go build -gcflags="all=-N -l" -o /build/app .
|
||||
RUN go build -gcflags="all=-N -l" -o bin/app .
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
@@ -34,7 +34,7 @@ WORKDIR /
|
||||
|
||||
# Copy binary from build to main folder
|
||||
COPY --from=builder /go/bin/dlv .
|
||||
COPY --from=builder /build/app app
|
||||
COPY --from=builder /source/bin/app app
|
||||
|
||||
# Copy some application assets
|
||||
COPY --from=builder /source/deploy/docker/environment.sh ./deploy/docker/environment.sh
|
||||
|
||||
Reference in New Issue
Block a user