Clear and concise description of the problem
Deploy anywhere using docker to avoid network issues
Suggested solution
I built an image and there seems to be no problem accessing it
Dockerfile
FROM node:20.16.0-alpine3.20 AS build
WORKDIR /app
COPY . .
RUN corepack enable && corepack prepare --activate
RUN pnpm install && pnpm run build
FROM aliuq/nginx:vue
ENV TZ=Asia/Shanghai
ENV NODE_ENV=production
WORKDIR /app
COPY --from=build /app/dist /app
CMD ["nginx", "-g", "daemon off;"]
EXPOSE 80
Test command
docker run --rm -p 8080:80 --name icones aliuq/icones:latest
then visit http://localhost:8080
Alternative
No response
Additional context
No response
Validations
Clear and concise description of the problem
Deploy anywhere using docker to avoid network issues
Suggested solution
I built an image and there seems to be no problem accessing it
Dockerfile
Test command
then visit http://localhost:8080
Alternative
No response
Additional context
No response
Validations