Closed ghost closed 3 years ago
Thanks for the pull request 😃
I’ll work on merging this soon, but first I have to merge https://github.com/leafac/www.kill-the-newsletter.com/pull/21, because it changes the infrastructure a bit: there will be a new volume to mount (/static/alternate/
).
I merged #21 and will look at this soon.
I wrote some changes on top of your pull request. Please review and test them by following the instructions on the README
. I don’t use Docker and don’t have it installed, so you should expect to find problems. I followed the instructions on https://nodejs.org/en/docs/guides/nodejs-docker-webapp/.
The goal here shouldn’t be to have a definitive Dockerfile
for every use case, because people have different tastes and needs. The goal should be to have a good working example Dockerfile
on which people can build, so we should make it as simple and standard as possible.
The changes are here: https://github.com/leafac/www.kill-the-newsletter.com/commit/33e84b345a421e7da9878259ddf7fb23295df3be
The highlights are:
FROM node:latest
instead of FROM node:lts-alpine
. Reasons:
Dockerfile
.CMD npx ts-node .
instead of CMD [ "npm", "start" ]
. Reasons:
@jtagcat, @nemosmithasf: Can you please test this as well?
@leafac I'd love to help out, but I'm not sure I know enough about Docker to be useful. I only know how to use it, the technical side is a bit beyond me.
But for what it's worth, I tried running docker build .
on the Dockerfile and didn't get any output. I'm not sure if that's helpful or proves the above point.
Thank you all for your help. I tested the Docker support myself and it’s working. See https://github.com/leafac/www.kill-the-newsletter.com/tree/b9907a8021cebd6cd4a4b3131fd31ac5aa0a2e37
See #20.
This is my first time creating a Dockerfile so I would appreciate if people could look this over!
I was trying to validate the container against my Traefik reverse-proxy setup, but no luck there. I haven't had tons of free time to debug and Traefik is temperamental at best. I do know that the container will build and the website seems to work if accessed behind the proxy, although I wasn't able to get email or RSS working.
My main points of concern before merging this are: