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

Support offical docker image #341

Open
3 tasks done
aliuq opened this issue Dec 25, 2024 · 0 comments
Open
3 tasks done

Support offical docker image #341

aliuq opened this issue Dec 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@aliuq
Copy link

aliuq commented Dec 25, 2024

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

@aliuq aliuq added the enhancement New feature or request label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant