hacktoberfest-projects icon indicating copy to clipboard operation
hacktoberfest-projects copied to clipboard

Simple implementation of Docker for development and production

Open ppastene opened this issue 3 years ago • 8 comments

Simple implementation of Docker to 'dockerize' the project intended for development (using yarn dev) and production (using yarn build and yarn start). I've used https://github.com/vercel/next.js/tree/canary/examples/with-docker-multi-env as a base for this PR.

The only missing was to update the README.md to incluide the Makefile commands to run the project into Docker

ppastene avatar Oct 24 '22 04:10 ppastene

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hacktoberfest-projects ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 0:43am

vercel[bot] avatar Oct 24 '22 04:10 vercel[bot]

@ppastene Are you working on making the requested changes?

max-programming avatar Oct 03 '23 19:10 max-programming

@ppastene Are you working on making the requested changes?

Woah, I've forgot about this. But yeah, I can make it work again and update the README.MD

ppastene avatar Oct 06 '23 02:10 ppastene

Someone is attempting to deploy a commit to a Personal Account owned by @max-programming on Vercel.

@max-programming first needs to authorize it.

vercel[bot] avatar Oct 11 '23 04:10 vercel[bot]

I'm still working with the pull request, I barely got any time because of my job and being a PR from last year so maybe I need to update the Dockerfiles.

ppastene avatar Oct 12 '23 05:10 ppastene

@max-programming Got some news. I've updated the dockerfiles and now it runs on a dev environment including hot reload for editing, and also for production by building the app, copying to a fresh image and run it from there improving the container size and performance. The only problem I have is the app ask me for the xata.io apiKey everytime it builds so for development is not a problem in a first stance but for production next.js will not build without the apiKey.

Is there a chance to run the app without the apiKey?

ppastene avatar Oct 14 '23 02:10 ppastene

@ppastene

Yes the app can be run without API key. For production I have set it up on Vercel already.

I'm yet to test the dockerfile but it looks like it'll work

max-programming avatar Oct 14 '23 03:10 max-programming

@ppastene sorry for the delay. Can you please fix the conflicts?

max-programming avatar Oct 28 '23 07:10 max-programming