spawnia / md-to-pdf

A web service for converting markdown to PDF
https://md-to-pdf.fly.dev
MIT License
81 stars 9 forks source link

Issue deploying to fly.io #3

Closed mlava closed 1 year ago

mlava commented 1 year ago

Hi there. I got the Docker container working locally and it outputs beautifully. I am having trouble deploying it to fly.io. I think the issue is in my Dockerfile.

FROM spawnia/md-to-pdf

CMD ["md-to-pdf", "-", "-o", "output.pdf"]

I'm sure it's wrong and will appreciate any advice. Thanks in advance!

spawnia commented 1 year ago

The md-to-pdf executable accepts no arguments. The pre-built container should work as is, I am deploying it to fly.io as well.

mlava commented 1 year ago

Sorry, I am not sure I understand. Does that mean my Dockerfile CMD line should just read:

CMD ["md-to-pdf"]

spawnia commented 1 year ago

You do not need the line at all, it is already baked into the image as CMD ["md-to-pdf"].

mlava commented 1 year ago

I am sorry to be such a noob. Thank you. I am having trouble deploying to fly.io and thought I needed a Dockerfile to deploy. I presume there's a way to deploy without a Dockerfile?

spawnia commented 1 year ago

Possible. I won't do tech support for fly.io here though 😉

mlava commented 1 year ago

Hey, thanks anyway. I appreciate your clarifying a couple of things for me above. And thanks for this awesome container!

mlava commented 1 year ago

Hi again. I have this running perfectly locally, but simply can't get it to work on fly.io. Is there some way I could donate you some $ and then get you to look at my fly.toml file? Cheers