Next.js Discord

Discord Forum

Does anyone know of a Docker image which comes with preinstalled next.js?

Unanswered
Oak rough bulletgall wasp posted this in #help-forum
Open in Discord
Avatar
Oak rough bulletgall waspOP
I need an optimized docker image for devspace to run my next.js application for development! Would love if anyone knows about if such an docker image exist, because I can't find any!!!

6 Replies

Avatar
Masai Lion
FROM node:18
RUN npm i -g next@latest
Avatar
Golden-winged Warbler
Avatar
Oak rough bulletgall waspOP
roger, well its because devSpace works with devImages which is Prebuilt images used for development are usually generic images that do not contain your application or any source code. They often only contain the necessary tooling to build, run, and debug your application in the appropriate language.

- then they file sync ones source code directly into that to then be able to build and run it for much faster compilation.
unfortunately they don't have a prebuilt devImage ... so one would have to serve that for them, I'm more looking for such an image. 😄
But i'll try with that ! thanks 😄
Avatar
Golden-winged Warbler
yeah, sounds like you probably just need the first parts of the Dockerfile from my first link, assuming devspace can use 3rd-party images
Avatar
Oak rough bulletgall waspOP
they can! 😄