feat: debug multistage build
This commit is contained in:
+4
-4
@@ -1,7 +1,7 @@
|
||||
LABEL org.opencontainers.image.authors="psssix <psssix@gmail.com>"
|
||||
|
||||
FROM golang:alpine as builder
|
||||
|
||||
LABEL org.opencontainers.image.authors="psssix <psssix@gmail.com>"
|
||||
|
||||
# set build environmet variables needed for multistage building
|
||||
ENV CGO_ENABLED=0 \
|
||||
GOOS=linux
|
||||
@@ -29,10 +29,10 @@ WORKDIR /
|
||||
|
||||
# Copy binary from build to main folder
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder build/app app
|
||||
COPY --from=builder /source/build/app app
|
||||
|
||||
# Copy some application assets
|
||||
#COPY ./database/data.json /dist/database/data.json
|
||||
#COPY ./database/data.json /database/data.json
|
||||
# Export necessary port
|
||||
#EXPOSE 3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user