refactor: use bin instead of build directory
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN go build -ldflags "-s -w" -o /bin/app .
|
||||
RUN go build -ldflags "-s -w" -o bin/app .
|
||||
|
||||
FROM scratch
|
||||
|
||||
@@ -35,7 +35,7 @@ WORKDIR /
|
||||
|
||||
# Copy binary from build to main folder
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /bin/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