Skip to content
Discussion options

You must be logged in to vote

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

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by xiangechen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #17 on April 10, 2025 00:56.