From 3fe7151017f2db49a9055074f20266a0c8120c32 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 13 Sep 2021 18:14:43 +0200 Subject: [PATCH] Docker build: add metadata, clear npm cache --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0e87c56..ef51c9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,11 @@ FROM node:alpine as builder +LABEL org.opencontainers.image.title="db-rest" +LABEL org.opencontainers.image.description="A clean REST API wrapping around the Deutsche Bahn API." +LABEL org.opencontainers.image.authors="Jannis R " +LABEL org.opencontainers.image.documentation="https://github.com/derhuerst/db-rest/tree/5" +LABEL org.opencontainers.image.source="https://github.com/derhuerst/db-rest" +LABEL org.opencontainers.image.revision="5" +LABEL org.opencontainers.image.licenses="ISC" WORKDIR /app # install dependencies @@ -17,7 +24,7 @@ WORKDIR /app # install dependencies ADD package.json /app -RUN npm install --production +RUN npm install --production && npm cache clean --force # add source code ADD . /app