added Docker support with env variables

This commit is contained in:
2023-07-10 21:57:25 +02:00
parent d63024a91a
commit a20e1e7ac8
2 changed files with 53 additions and 38 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM node:18-alpine
# 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 (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --omit=dev
# Bundle app source
COPY . .
CMD [ "node", "." ]