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 gcr.io/distroless/static
|
||||||
FROM scratch
|
FROM scratch
|
||||||
EXPOSE 8500
|
EXPOSE 8500
|
||||||
WORKDIR /bin
|
WORKDIR /bin/barcodes
|
||||||
COPY --from=build /build/templates /bin/templates
|
COPY --from=build /build/templates /bin/barcodes/templates
|
||||||
COPY --from=build /build/static /bin/static
|
COPY --from=build /build/static /bin/barcodes/static
|
||||||
COPY --from=build /build/barcodes /bin/barcodes
|
COPY --from=build /build/barcodes /bin/barcodes/barcodes
|
||||||
CMD [ "/bin/barcodes" ]
|
CMD [ "/bin/barcodes/barcodes" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user