Skip to content

Instantly share code, notes, and snippets.

@ttimasdf
Created April 2, 2020 06:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ttimasdf/c4c0f9a68f67515f28adfda4fb238d21 to your computer and use it in GitHub Desktop.
How to build Clash dashboard inside Docker

How to build Clash dashboard inside Docker

https://github.com/Dreamacro/clash-dashboard

Save codes below as Dockerfile.

FROM node:lts-stretch

COPY . .

RUN npm i --dev

RUN npm run build && ls ./dist

Build it.

docker build . -t build --rm --force-rm

copy built files out.

docker container create --name built build
docker cp built:dist .
ls dist  # built file is here

docker rm built
docker rmi build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment