douyin Docker & Self-Hosted Deployment

GitHub

Vue3 + Pinia 仿抖音,Vue 在移动端的最佳实践 . Imitate TikTok ,Vue Best practices on Mobile

11,546 stars Vue Vue 7 files · ~8,752 tokens #douyin#js#tiktok#vue#vue3
1. Pull Image (DOCKERHUB) docker pull zyronon/douyin:latest
2. Docker Run (1-Click Launch) docker run -d --name douyin --restart always zyronon/douyin:latest
3. Podman Run podman run -d --name douyin --restart always zyronon/douyin:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/zyronon/douyin:latest
5. ORAS Pull (OCI Artifact) oras pull zyronon/douyin:latest
Dockerfile
# syntax = docker/dockerfile:experimental
FROM --platform=${BUILDPLATFORM:-linux/amd64,linux/arm64} node:20-buster AS builder

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

WORKDIR /src
COPY ./ ./

# RUN两次方便观察install和build, 也可以用pnpm cache and locked
RUN pnpm install
RUN npm run build

FROM --platform=${BUILDPLATFORM:-linux/amd64,linux/arm64} ghcr.io/rookie-luochao/nginx-runner:latest

COPY --from=builder /src/dist /app