Update WORKDIR for final stage
This commit is contained in:
parent
9007e7e916
commit
52b002f2f2
10
Dockerfile
10
Dockerfile
@ -9,8 +9,8 @@ RUN CGO_ENABLED=0 go build .
|
||||
#FROM gcr.io/distroless/static
|
||||
FROM scratch
|
||||
EXPOSE 8500
|
||||
WORKDIR /bin
|
||||
COPY --from=build /build/templates /bin/templates
|
||||
COPY --from=build /build/static /bin/static
|
||||
COPY --from=build /build/barcodes /bin/barcodes
|
||||
CMD [ "/bin/barcodes" ]
|
||||
WORKDIR /bin/barcodes
|
||||
COPY --from=build /build/templates /bin/barcodes/templates
|
||||
COPY --from=build /build/static /bin/barcodes/static
|
||||
COPY --from=build /build/barcodes /bin/barcodes/barcodes
|
||||
CMD [ "/bin/barcodes/barcodes" ]
|
||||
|
Loading…
Reference in New Issue
Block a user