chore: Update Dockerfile to include Node.js version 18 and install pm2 globally
Build and Push Docker Images / build-and-push (push) Has been cancelled

This commit is contained in:
2024-08-03 17:36:45 +02:00
parent 58d2f4a9ee
commit d51e19e400
4 changed files with 132 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM node:18
WORKDIR /config
ENV API_URL https://api.comedykit.be/
ENV ROOT_PATH /react-app
ENV DEFAULT_TITLE ComedyKit
env DEFAULT_DESCRIPTION Ontdek je lach en deel je humor op het meest bruisende comedy platform van Vlaanderen.
# Create app directory
WORKDIR /server
# 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 pm2 -g
RUN npm install
# If you are building your code for production
# RUN npm ci --omit=dev
# Bundle app source
COPY . .
RUN pm2-runtime "node index.js"
EXPOSE 3000