A pre-configured Next.js dev container with a full suite of essential tools for rapid development.
88
nextjs-dev-container is a ready-to-use Docker image designed to streamline and simplify your Next.js development experience. This container comes pre-configured with a complete development environment, including Node.js, npm, and essential build tools, to help you quickly set up, develop, and build your Next.js applications.
To get started with nextjs-dev-container, simply pull the image from Docker Hub:
docker pull nextjs-dev-container
Dockerfile
FROM node:18.15.0-bullseye
ENV NODE_ENV development
ENV NPM_VERSION 9.6.1
EXPOSE 3000
WORKDIR /home/nextjs/app
COPY package*.json ./
RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}
RUN npm install -g npm@${NPM_VERSION} \
npm install && npm cache clean --force
RUN npx next telemetry disable
RUN chown -R node:node .
USER node
COPY . .
CMD [ "node" ]
docker-compose.yml
version: '2.4'
services:
nextjs:
ports:
- 3000:3000
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/home/nextjs/app
environment:
- NODE_ENV=development
command: npm run dev
Content type
Image
Digest
sha256:82b9181fc…
Size
549.9 MB
Last updated
over 3 years ago
docker pull melissakipp/nextjs-dev:1.0.0