xiangechen / chili3d

A 3D CAD application on your browser
https://chili3d.com
GNU Affero General Public License v3.0
293 stars 66 forks source link

How to deploy by docker as selfhost? #17

Open mickey3721 opened 4 months ago

mickey3721 commented 4 months ago

I want to deploy the 3d explorer in a selfhost server by docker, how to do?

xiangechen commented 4 months ago

Assuming you are already familiar with docker, this is a static page that can be deployed via nginx. The contents of the Dockerfile file in the project root directory are as follows:

FROM node:alpine AS builder
WORKDIR '/app'
COPY package.json .
RUN npm install
COPY . .
RUN npm run build

FROM nginx:alpine
COPY --from=builder /app/build /usr/share/nginx/html