forked from excalidraw/excalidraw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
b0t.Dockerfile
29 lines (20 loc) · 926 Bytes
/
b0t.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node:20-alpine AS build
ARG PUB_SRV_NAME=draw.mydomain.com
ARG PUB_SRV_NAME_WS=ws.draw.mydomain.com
ARG VITE_APP_BACKEND_V2_GET_URL=https://draw.mydomain.com/api/v2/scenes/
ARG VITE_APP_BACKEND_V2_POST_URL=https://draw.mydomain.com/api/v2/scenes/
ARG VITE_APP_WS_SERVER_URL=https://ws.draw.mydomain.com/
ENV PUB_SRV_NAME=${PUB_SRV_NAME}
ENV PUB_SRV_NAME_WS=${PUB_SRV_NAME_WS}
ENV VITE_APP_BACKEND_V2_GET_URL=${VITE_APP_BACKEND_V2_GET_URL}
ENV VITE_APP_BACKEND_V2_POST_URL=${VITE_APP_BACKEND_V2_POST_URL}
ENV VITE_APP_WS_SERVER_URL=${VITE_APP_WS_SERVER_URL}
WORKDIR /opt/node_app
COPY package.json yarn.lock ./
RUN yarn --ignore-optional --network-timeout 600000
RUN npm install cross-env
#COPY --from=download /opt/node_app/excalidraw/ .
RUN yarn build:app:docker
FROM nginx:1.25.4-alpine
COPY --from=build /opt/node_app/build /usr/share/nginx/html
HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1