-
-
Notifications
You must be signed in to change notification settings - Fork 327
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request