Project with Docker that should not use Docker
I have a NodeJS repo that has a Dockerfile, but I would like to be able to deploy it without using this Dockerfile.
In fact, my Dockerfile is for the website using NextJS, but I also have a Storybook that I would like to run (
npm run sb:build && npm run sb:start
), except that I can't specify a build command when a Dockerfile is present.
Project ID : 3b773474-929b-4462-8ef5-d08b82873b045 Replies
Project ID:
3b773474-929b-4462-8ef5-d08b82873b04
rename the Dockerfile to something like Dockerfile.dev or just remove the Dockerfile
It is possible to build a project without dockerizing it, but Railway uses the Dockerfile in order to deploy on the server. It is possible to avoid using that method by gitignoring it from the repo or renaming it to something like
Dockerfile.dev
.⚠️ experimental feature
But I need this Dockerfile for the website too
move the nextjs app and the storybook app into separate folders