mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
perf: small improvement to dockerfile building and switching maintainer
This commit is contained in:
parent
01595577a8
commit
dacd6d0006
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user