Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deploy by docker as selfhost? #17

Open
mickey3721 opened this issue May 24, 2024 · 4 comments
Open

How to deploy by docker as selfhost? #17

mickey3721 opened this issue May 24, 2024 · 4 comments

Comments

@mickey3721
Copy link

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

@xiangechen
Copy link
Owner

xiangechen commented May 25, 2024

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 . .
RUN npm install && npm run build
 
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html

@herobrinor
Copy link

In the last line of this Dockerfile, I changed /app/build to /app/dist and that works for me.

@mickey3721
Copy link
Author

mickey3721 commented Nov 6, 2024

Did not build image successfully, both /app/build and /app/dist
image

can support docker image for deployment?

@xiangechen
Copy link
Owner

I've revised the previous comment; it should be okay now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants