perf: small improvement to dockerfile building and switching maintainer

This commit is contained in:
Thomas Dupont 2022-06-28 14:28:27 +02:00 committed by Joachim Van Herwegen
parent 01595577a8
commit dacd6d0006

View File

@ -1,12 +1,9 @@
# Build stage # Build stage
FROM node:lts AS build FROM node:lts-alpine AS build
## Set current working directory ## Set current working directory
WORKDIR /community-server WORKDIR /community-server
## Copy the package.json for audit
COPY package*.json ./
## Copy the dockerfile's context's community server files ## Copy the dockerfile's context's community server files
COPY . . COPY . .
@ -15,12 +12,11 @@ RUN npm ci --unsafe-perm && npm run build
# Runtime stage # Runtime stage
FROM node:lts-alpine FROM node:lts-alpine
## Add contact informations for questions about the container ## Add contact informations for questions about the container
LABEL maintainer="Solid Community Server Docker Image Maintainer <matthieubosquet@gmail.com>" LABEL maintainer="Solid Community Server Docker Image Maintainer <thomas.dupont@ugent.be>"
## Container config & data dir for volume sharing ## Container config & data dir for volume sharing
## Defaults to filestorage with /data directory (passed through CMD below) ## Defaults to filestorage with /data directory (passed through CMD below)