No video

Dockerize Next.js 14+ App in 2024

  Рет қаралды 1,359

Frontend Basics

Frontend Basics

Күн бұрын

Hello everyone, in today's video I will show you how to Dockerize your Next.js application.
The Dockerfile we will going to prepare is not a simple one. It will be an optimized Dockerfile that cuts every unnecessary corner for a better CI/CD experience.
If you don't have Docker Desktop installed on your machine, download it here:
www.docker.com...
If you liked the video, don't. forget to subscribe. I am trying to pass 100 subscriptions!

Пікірлер: 10
@frontendbasics
@frontendbasics Ай бұрын
If the video helped, don't forget to subscribe. I am trying to pass 100 subscriptions
@themanlyman7737
@themanlyman7737 Ай бұрын
Almost had a heart attack when I saw the vs code appbar is on the right side
@frontendbasics
@frontendbasics Ай бұрын
I highly recommend it! This way, when you close or open the tab bar it doesn’t affect the code editor
@bmxdeveloper
@bmxdeveloper 24 күн бұрын
How do you handle others environment variables and secrets, with a docker register like that is on GitHub and deployed in railsway
@frontendbasics
@frontendbasics 24 күн бұрын
If the environment variables will be used for the next.js app, you can copy the environment file directly
@tamuahmed5303
@tamuahmed5303 Ай бұрын
Are you building the image to deploy it outside vercel? Also does this image will support SSR, ISR etc.? Thanks.
@frontendbasics
@frontendbasics Ай бұрын
Yes exactly. It supports those technologies
@sa2avro
@sa2avro Ай бұрын
node:internal/modules/cjs/loader:1148 throw err; ^ Error: Cannot find module 'next/dist/compiled/find-up' Require stack: - /node_modules/next/dist/server/config.js - /node_modules/next/dist/server/next.js -
@frontendbasics
@frontendbasics Ай бұрын
Can you provide the Dockerfile?
@sa2avro
@sa2avro Ай бұрын
@@frontendbasics FROM node:20-alpine AS deps COPY package*.json ./ RUN npm install FROM node:20-alpine AS builder COPY . . COPY --from=deps /node_modules ./node_modules RUN npm run build FROM node:20-alpine AS runner COPY --from=builder /.next/standalone ./ COPY --from=builder /public ./public COPY --from=builder /.next/static ./.next/static EXPOSE 3001 ENV PORT 3001 CMD HOSTNAME="0.0.0.0" node server.js
The Story of Next.js
12:13
uidotdev
Рет қаралды 569 М.
Dockerize Next.js & Deploy to VPS (EASY!)
19:43
ByteGrad
Рет қаралды 55 М.
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 41 МЛН
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 54 МЛН
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 55 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 152 М.
Decrease Next.js Docker Image Size 15x
5:36
Frontend Basics
Рет қаралды 2 М.
I forced EVERYONE to use Linux
22:59
NetworkChuck
Рет қаралды 477 М.
What Theo Won't Tell You About Next.js
8:37
Dev Agrawal
Рет қаралды 87 М.
The BEST way to host Next.js websites
17:37
ByteGrad
Рет қаралды 35 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 56 М.
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 442 М.
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 41 МЛН