From dacd6d00067de7f0dc1cb2ea65a8ab686004c433 Mon Sep 17 00:00:00 2001 From: Thomas Dupont Date: Tue, 28 Jun 2022 14:28:27 +0200 Subject: [PATCH] perf: small improvement to dockerfile building and switching maintainer --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 48c620bb0..5854bd132 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,9 @@ # Build stage -FROM node:lts AS build +FROM node:lts-alpine AS build ## Set current working directory WORKDIR /community-server -## Copy the package.json for audit -COPY package*.json ./ - ## Copy the dockerfile's context's community server files COPY . . @@ -15,12 +12,11 @@ RUN npm ci --unsafe-perm && npm run build - # Runtime stage FROM node:lts-alpine ## Add contact informations for questions about the container -LABEL maintainer="Solid Community Server Docker Image Maintainer " +LABEL maintainer="Solid Community Server Docker Image Maintainer " ## Container config & data dir for volume sharing ## Defaults to filestorage with /data directory (passed through CMD below)