Move labels to last stage
This commit is contained in:
parent
16f92c8173
commit
4ef9381acd
27
Dockerfile
27
Dockerfile
|
@ -9,17 +9,6 @@ ARG SERVERS='[{"name":"Local Server","location":"Local","url":"","image":"synclo
|
||||||
ARG SOURCE_BRANCH
|
ARG SOURCE_BRANCH
|
||||||
ARG REVISION
|
ARG REVISION
|
||||||
|
|
||||||
LABEL org.opencontainers.image.created=$BUILD_DATE
|
|
||||||
LABEL org.opencontainers.image.title="SyncLounge"
|
|
||||||
LABEL org.opencontainers.image.description="Enjoy Plex with your friends. In Sync. Together."
|
|
||||||
LABEL org.opencontainers.image.url="https://synclounge.tv/"
|
|
||||||
LABEL org.opencontainers.image.revision=$REVISION
|
|
||||||
LABEL org.opencontainers.image.source="https://github.com/samcm/synclounge"
|
|
||||||
LABEL org.opencontainers.image.vendor="SyncLounge"
|
|
||||||
LABEL org.opencontainers.image.version=$VERSION
|
|
||||||
LABEL org.opencontainers.image.licenses="MIT"
|
|
||||||
LABEL org.opencontainers.image.documentation="https://docs.synclounge.tv/"
|
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# dependency build environment
|
# dependency build environment
|
||||||
|
@ -34,6 +23,20 @@ COPY config config
|
||||||
# production environment
|
# production environment
|
||||||
FROM node:current-alpine as production-stage
|
FROM node:current-alpine as production-stage
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build-stage /app/dist dist
|
|
||||||
COPY --from=dependency-stage /app .
|
COPY --from=dependency-stage /app .
|
||||||
|
|
||||||
|
ARG REVISION
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.created=$BUILD_DATE
|
||||||
|
LABEL org.opencontainers.image.title="SyncLounge"
|
||||||
|
LABEL org.opencontainers.image.description="Enjoy Plex with your friends. In Sync. Together."
|
||||||
|
LABEL org.opencontainers.image.url="https://synclounge.tv/"
|
||||||
|
LABEL org.opencontainers.image.revision=$REVISION
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/samcm/synclounge"
|
||||||
|
LABEL org.opencontainers.image.vendor="SyncLounge"
|
||||||
|
LABEL org.opencontainers.image.version=$VERSION
|
||||||
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
|
LABEL org.opencontainers.image.documentation="https://docs.synclounge.tv/"
|
||||||
|
|
||||||
|
COPY --from=build-stage /app/dist dist
|
||||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[github-docker-badge]: https://github.com/actions/ttshivers/workflows/Docker/badge.svg
|
[github-docker-badge]: https://github.com/ttshivers/synclounge/workflows/Docker/badge.svg
|
||||||
[docker-version-badge]: https://images.microbadger.com/badges/version/ttshivers/synclounge:latest.sv
|
[docker-version-badge]: https://images.microbadger.com/badges/version/ttshivers/synclounge:latest.svg
|
||||||
[docker-latest-size-badge]: https://images.microbadger.com/badges/image/ttshivers/synclounge:latest.svg
|
[docker-latest-size-badge]: https://images.microbadger.com/badges/image/ttshivers/synclounge:latest.svg
|
||||||
[docker-pulls-badge]: https://img.shields.io/docker/pulls/ttshivers/synclounge.svg
|
[docker-pulls-badge]: https://img.shields.io/docker/pulls/ttshivers/synclounge.svg
|
||||||
[license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
|
[license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
|
||||||
|
|
Loading…
Reference in New Issue