Skip to content

Instantly share code, notes, and snippets.

@ewingson
Created May 14, 2023 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewingson/4c08337af0ff749b88186d570d9b50c3 to your computer and use it in GitHub Desktop.
Save ewingson/4c08337af0ff749b88186d570d9b50c3 to your computer and use it in GitHub Desktop.
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