all repos — caroster @ eacae3b5757ee863358e7e3e52a5b6126422d67f

[Octree] Group carpool to your event https://caroster.io

Dockerfile (view raw)

 1FROM node:16-alpine
 2
 3VOLUME /srv/app/backend/node_modules
 4VOLUME /srv/app/backend/build
 5VOLUME /srv/app/backend/public/uploads
 6VOLUME /srv/app/frontend/node_modules
 7VOLUME /srv/app/frontend/.next
 8
 9EXPOSE 80
10WORKDIR /srv/app
11
12RUN apk add --no-cache nginx && yarn global add pm2
13COPY ./frontend /srv/app/frontend
14COPY ./backend /srv/app/backend
15COPY ./ecosystem.config.js /srv/app/
16COPY ./nginx.conf /etc/nginx/http.d/default.conf
17
18CMD nginx && pm2-runtime start ecosystem.config.js