Created
May 14, 2023 15:02
-
-
Save ewingson/4c08337af0ff749b88186d570d9b50c3 to your computer and use it in GitHub Desktop.
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
FROM node:16 | |
# Container config & data dir for volume sharing | |
# Defaults to filestorage with /data directory (passed through CMD below) | |
RUN mkdir /config /data | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
# where available | |
COPY package*.json ./ | |
RUN npm ci --omit=dev | |
# Bundle app source | |
COPY . . | |
# Informs Docker that the container listens on the specified network port at runtime | |
EXPOSE 3000 | |
# By default run in filemode with mashlib (overriden if passing alternative arguments or env vars) | |
ENV CSS_CONFIG=config-mashlib.json | |
ENV CSS_ROOT_FILE_PATH=/data | |
# Set command run by the container | |
ENTRYPOINT [ "node", "node_modules/@solid/community-server/bin/server.js" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment