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