vue-pure-admin Docker & Self-Hosted Deployment

GitHub

全面ESM+Vue3+Vite+Element-Plus+TypeScript编写的一款后台管理系统(兼容移动端)

20,706 stars Vue Vue 3 files · ~3,056 tokens #admin#element-plus#esm#pinia#tailwindcss#typescript#vite#vue3
1. Pull Image (DOCKERHUB) docker pull pure-admin/vue-pure-admin:latest
2. Docker Run (1-Click Launch) docker run -d --name vue-pure-admin -p 80:80 --restart always pure-admin/vue-pure-admin:latest
3. Podman Run podman run -d --name vue-pure-admin -p 80:80 --restart always pure-admin/vue-pure-admin:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/pure-admin/vue-pure-admin:latest
5. ORAS Pull (OCI Artifact) oras pull pure-admin/vue-pure-admin:latest
Dockerfile
FROM node:20-alpine as build-stage

WORKDIR /app
RUN corepack enable
RUN corepack prepare pnpm@latest --activate

RUN npm config set registry https://registry.npmmirror.com

COPY .npmrc package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

COPY . .
RUN pnpm build

FROM nginx:stable-alpine as production-stage

COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]