Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Bubble up LABEL layer in Dockerfiles to avoid docker save errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Dec 16, 2020
1 parent 55efbbc commit 49914b1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ RUN cp /app/target/${rustc_mode}/medea /out/medea \
# https://hub.docker.com/_/scratch
FROM scratch AS runtime

LABEL org.opencontainers.image.source="https://github.com/instrumentisto/medea"

COPY --from=dist /out/ /

USER nobody:nobody

LABEL org.opencontainers.image.source="https://github.com/instrumentisto/medea"

ENTRYPOINT ["/medea"]
6 changes: 3 additions & 3 deletions jason/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ RUN cd /src/ \
# https://hub.docker.com/_/nginx
FROM nginx:stable-alpine AS runtime

LABEL org.opencontainers.image.source="\
https://github.com/instrumentisto/medea/tree/master/jason/demo"

COPY jason/demo/chart/medea-demo/conf/nginx.vh.conf \
/etc/nginx/conf.d/default.conf

COPY jason/demo/index.html /app/
COPY --from=dist /src/jason/pkg/ /app/js/

WORKDIR /app

LABEL org.opencontainers.image.source="\
https://github.com/instrumentisto/medea/tree/master/jason/demo"
6 changes: 3 additions & 3 deletions jason/demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ RUN cd /npm/ \
# https://hub.docker.com/_/nginx
FROM nginx:stable-alpine AS runtime

LABEL org.opencontainers.image.source="\
https://github.com/instrumentisto/medea/tree/master/jason/demo"

COPY chart/medea-demo/conf/nginx.vh.conf /etc/nginx/conf.d/default.conf

COPY index.html /app/
COPY --from=dist /npm/node_modules/medea-jason/ /app/js/

WORKDIR /app

LABEL org.opencontainers.image.source="\
https://github.com/instrumentisto/medea/tree/master/jason/demo"
6 changes: 3 additions & 3 deletions mock/control-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ RUN cp /app/target/${rustc_mode}/medea-control-api-mock \
# https://hub.docker.com/_/scratch
FROM scratch AS runtime

LABEL org.opencontainers.image.source="\
https://github.com/instrumentisto/medea/tree/master/mock/control-api"

COPY --from=dist /out/ /

USER nobody:nobody

LABEL org.opencontainers.image.source="\
https://github.com/instrumentisto/medea/tree/master/mock/control-api"

ENTRYPOINT ["/medea-control-api-mock"]

0 comments on commit 49914b1

Please sign in to comment.