Giter VIP home page Giter VIP logo

Comments (7)

astefanutti avatar astefanutti commented on June 1, 2024

The only way to achieve this that I know of is to run:

docker run --rm -v `pwd`:/pwd -w /pwd astefanutti/decktape http://remarkjs.com/ export.pdf

This will execute in the specified working directory /pwd, which is mounted to the current directory.

As documented in Mount a host directory as a data volume:

The host directory is, by its nature, host-dependent. For this reason, you can’t mount a host directory from Dockerfile because built images should be portable. A host directory wouldn’t be available on all potential hosts.

So this can't be totally defined in DeckTape Dockerfile and has to be specified on the command line by the end-user. Though we could define a default container working directory.

from decktape.

oupala avatar oupala commented on June 1, 2024

@astefanutti, your solution would be great!

Can you add the WORKDIR in the Dockerfile or do you prefer that I create a pull request?

from decktape.

astefanutti avatar astefanutti commented on June 1, 2024

@oupala, we could declare a default /slides working directory in the Dockerfile. The ENTRYPOINT would have to be updated to reference the absolute path of the decktape.js script.

You're welcome to create a PR. That'd be great if you could update the Docker instructions in the README file as well 😉.

from decktape.

oupala avatar oupala commented on June 1, 2024

I've just created a pull request #64. I let you rebuild the Dockerfile when the pull request is merged (unless this is done automatically on a git push event).

from decktape.

astefanutti avatar astefanutti commented on June 1, 2024

Merged @f913091b606faa9f20719b207b58ce8f85b69c06. Thanks!

from decktape.

astefanutti avatar astefanutti commented on June 1, 2024

The Docker image has just been built successfully on DockerHub.

from decktape.

oupala avatar oupala commented on June 1, 2024

Just tested.

It works like a charm!

from decktape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.