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
Build and Push Docker Images / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user