docsify icon indicating copy to clipboard operation
docsify copied to clipboard

missed to copy files in docker image when building Dockerfile

Open joker7blue opened this issue 2 years ago • 2 comments

Bug Report

missing COPY . . in docker file

Steps to reproduce

  • Go to https://docsify.js.org/#/deploy
  • Scroll docker to docker part (Create Dockerfile)
  • Copy the suggested docsify Dockerfile
  • Go to yor docsify project, and paste what you copied from docsify website into your project
  • have a docker installed to you machine
  • have docsify installed
  • have a docsify project

Current behaviour

The files are not copied to the docker image when building docker file, since we missed to COPY . .

Expected behaviour

The docsify project should run as expected after building from docker

Other relevant information

  • Docsify version: latest
  • [ ] Bug still occurs when all/other plugins are disabled?

  • Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue):

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

joker7blue avatar Apr 26 '24 12:04 joker7blue

Hi @joker7blue , it doesn't copy it into the Dockerfile, it mounts the files as volume instead. Hence, you can sync the live changes on time.

docker run -itp 3000:3000 --name=docsify -v $(pwd):/docs docsify/demo

If you wanna deploy your site via docker, either you put all your things inside the Docker image or mount it on runtime, thats both okay.

Koooooo-7 avatar Apr 30 '24 06:04 Koooooo-7

oh ok, Thanks for the explanation @Koooooo-7 👍🏽

joker7blue avatar May 03 '24 22:05 joker7blue