This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
forked from CommunitySolidServer/CommunitySolidServer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: small improvement to dockerfile building and switching maintainer
- Loading branch information
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]>" | ||
LABEL maintainer="Solid Community Server Docker Image Maintainer <[email protected]>" | ||
|
||
## Container config & data dir for volume sharing | ||
## Defaults to filestorage with /data directory (passed through CMD below) | ||
|