Update WORKDIR for final stage

This commit is contained in:
Fred Boniface 2023-09-09 21:00:59 +01:00
parent 9007e7e916
commit 52b002f2f2

View File

@ -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" ]