refactor: use bin instead of build directory

This commit is contained in:
2022-08-07 23:25:20 +03:00
parent 8c6ded6794
commit ff29c49867
5 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -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