This repository has been archived on 2026-05-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2021-03-30 19:56:08 +02:00

23 lines
516 B
Docker
Executable File

FROM node:15
# Create app directory
WORKDIR /usr/src/app
VOLUME [ "/usr/src/app/data" ]
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
COPY src/postinstall.js ./src/postinstall.js
COPY src/config.default.json ./src/config.default.json
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
CMD [ "sh", "-c", "node src/server.js" ]