removed firebase and added support for rooms without firebase and fix docker setup
This commit is contained in:
17
Dockerfile
17
Dockerfile
@ -2,16 +2,23 @@ FROM node:18 AS build
|
||||
|
||||
WORKDIR /opt/node_app
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn --ignore-optional --network-timeout 600000
|
||||
FROM build as production_buildstage
|
||||
|
||||
ARG NODE_ENV=production
|
||||
COPY package.json yarn.lock ./
|
||||
COPY excalidraw-app/package.json ./excalidraw-app/
|
||||
COPY packages/excalidraw/package.json ./packages/excalidraw/
|
||||
|
||||
RUN yarn --network-timeout 600000
|
||||
|
||||
COPY . .
|
||||
|
||||
ARG NODE_ENV=production
|
||||
RUN yarn build:app:docker
|
||||
|
||||
FROM nginx:1.21-alpine
|
||||
FROM nginx:1.21-alpine as production
|
||||
|
||||
COPY --from=build /opt/node_app/build /usr/share/nginx/html
|
||||
COPY --from=production_buildstage /opt/node_app/excalidraw-app/build /usr/share/nginx/html
|
||||
|
||||
HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1
|
||||
|
||||
FROM build as development
|
Reference in New Issue
Block a user