This commit is contained in:
Joris Bertomeu
2024-11-19 12:01:15 +01:00
commit dfb0846b79
40 changed files with 16403 additions and 0 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM node:22 as build
WORKDIR /app
COPY . /app/
WORKDIR /app
RUN npm install
RUN npm run build
FROM node:22 as app
RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
RUN npm install -g pm2
WORKDIR /app
COPY --from=build /app/dist/web-screensaver/browser /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./api /app/api
WORKDIR /app/api
RUN npm install
EXPOSE 80
EXPOSE 3000
CMD ["sh", "-c", "nginx && pm2 start index.js --no-daemon"]