Тёмный

Building and deploying Next.js applications with Docker 

Docker
Подписаться 102 тыс.
Просмотров 44 тыс.
50% 1

Did you miss the Docker Community All-Hands on March 31st, 2022?
Here is a replay of the talk hosted by Armagan Amcalar (@dashersw): Building and deploying Next.js applications with Docker.
► Description: Next.js is a popular choice when it comes to building server-side rendered frontend applications with React. With static site generation and an extensive suite of development tools, Next.js offers an end-to-end solution. In this talk, Armagan will go over the steps you need to follow to use Next.js in Docker to enable a consistent development and deployment experience, including the development of Docker images for local application development and highly optimized production Docker images for deployment.
🐳 Join our community on Slack: dockr.ly/slack
You can follow Docker on social networks:
► Twitter: / docker
► LinkedIn: / docker
► Facebook: / docker.run

Наука

Опубликовано:

 

31 мар 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@lorenzocodes
@lorenzocodes Год назад
Precise and concise explanation... Thank you very much.
@iuripires7285
@iuripires7285 Год назад
Very very good! Thank you so much! Very didact and detailed. I've learned a lot!
@imjavierpalma
@imjavierpalma 2 года назад
Informative and clear! Cheers!
@MateuszKrysiak-vv4tp
@MateuszKrysiak-vv4tp Год назад
Amazing! Finally I know what am I doing! Very important for me was to watch that video to the end, where u explain Dockerfile from NextJS documentation ;))
@simonjanca
@simonjanca 2 года назад
Hi. It was really the best video I saw for that matter in last time. Thanks :)
@user-gs9oh5lq2k
@user-gs9oh5lq2k Год назад
Thank you! It was very helpful and I like the way you teach!
@ElOculto2d
@ElOculto2d 10 месяцев назад
Thank you for the video, very didatic and detailed, nice concepts and informative contents for us. Really really good!
@deniz-ozkan
@deniz-ozkan 2 года назад
Thank you for this amazing presentation, pretty concise and informative! 🎉
@pedropcamellon
@pedropcamellon 3 месяца назад
Informative and concise. Loved it! :) thanks!
@milenkomarkovic
@milenkomarkovic 2 года назад
Fantastic work!
@bibblebabl
@bibblebabl Год назад
It would be nice to have source code as well 🙂
@riansyahtohamba8215
@riansyahtohamba8215 Год назад
thanks for the videos guys
@Rafael-vn2bo
@Rafael-vn2bo Год назад
Thanks, worked for me.
@Basil_Porphyrogenitos
@Basil_Porphyrogenitos 2 года назад
Thanks a lot for this man
@onurkantar4307
@onurkantar4307 7 месяцев назад
Bir kere daha astık bayrakları 😇 Eline sağlık Armağan!
@thinhbui4835
@thinhbui4835 2 года назад
Thank you sir, just another question, how do I config to change default port 3000 to 4200 of the container? Do I need to create a server.js file?
@stefanflaschko
@stefanflaschko 4 месяца назад
Where is the deploying part? localhost is not deployment.
@bibblebabl
@bibblebabl Год назад
Thanks. What if we want to use it with nginx?
@user-wo2jn1fb9k
@user-wo2jn1fb9k Год назад
Hi Armagan! Thank you for this amazing presentation! When use command docker-compose -f docker-compose.production.yml up --build --force-recreate I get errors in my application that are not present when building locally: 1. Type error: Cannot find module '../components/Heading' or its corresponding type declarations. #0 8.843 > 4 | import Heading from "../components/Heading"; 2. failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 1 Please tell me how to fix it?
@thatsalot3577
@thatsalot3577 Год назад
It happened because you didn't copied the components folder which has a file Heading, But you imported this file in your pages folder If you're creating a components folder make sure to copy it in the dockerfile just like you copied pages folder. COPY components ./components
@antoniofabricio9276
@antoniofabricio9276 2 года назад
how do i build and deploy a next js with node app with docker?
@nileshchaudhari843
@nileshchaudhari843 2 года назад
Hi Armagan, when use command docker-compose -f docker-compose.production.yml up --build --force-recreate ERROR: The Compose file is invalid because: Service app has neither an image nor a build context specified. At least one must be provided.
@jowarren7211
@jowarren7211 2 года назад
I ran into this too and added "context: . " in the compose under the build field
@nileshchaudhari843
@nileshchaudhari843 2 года назад
@@jowarren7211 Thanks it works
@lxttledemonking
@lxttledemonking 2 года назад
if you're using typescript consider removing the NODE_ENV=production from the first stage of Dockerfile.production
@jeffinj7707
@jeffinj7707 Год назад
can you share why? thanks
@peterdshekiondo9444
@peterdshekiondo9444 Год назад
am not sure why but in my initial build, the site was rendering a blank page. But this resolved it.
@anandhukraju8044
@anandhukraju8044 2 года назад
Does the Nextjs Image component run well on prod?
@phulesudarshan
@phulesudarshan Год назад
Do we have a video for next steps to take this to next level on aws for prod as well?
@marceloguimaraes796
@marceloguimaraes796 2 года назад
In development ssr no work, getServerSideProps :(
@rickvianaldi7620
@rickvianaldi7620 2 года назад
8:01 i was surprised on the text can change suddenly, it seems like you edit and save on the other screen?
@raajnadar
@raajnadar Год назад
Hot reloading
@wchorski
@wchorski Год назад
links to source code or snippit you copy pasted?
@RaducuGabriel
@RaducuGabriel Год назад
sorry, but where is the deploying part?
@tannedstone3736
@tannedstone3736 Год назад
13:33
@theouerd
@theouerd Год назад
there’s a famous quote that says : talk is cheap, show me the code 😅
@chrisauret3785
@chrisauret3785 2 года назад
Yes but How do we run in different environments? Say Dev, STG, QA, Prod, where each environment needs its own config variables? Can we use one image for each different environment? (and how do we configure the envionment variables to use to use with this approach) Or do we need to build a seperate image for each environment? (and how do we configure the envionment variables to use with this approach)
@secret-alias
@secret-alias 2 года назад
I'm no expert but I would imagine in your CI/CD process, when you run docker build you could pass in your variables to either run a different build if that's what you need, or to build once and use the variables if they don't affect the build if that's what you need. I think that's entirely down to your own requirements. If it affects the build, then different images, if not, then just pass the variables straight through to the application.
@iamrajesh1980
@iamrajesh1980 Год назад
Can you please post the source to GitHub
@en_kratia
@en_kratia 8 месяцев назад
Link in the end of the video?
@thehaptiK
@thehaptiK 2 года назад
these presentations are useless without submitting your code to a public repo
@batm1x
@batm1x Год назад
Why do you have install additional package "yarn", if you have already installed npm with node by default? What the point ?
@ryostyles9904
@ryostyles9904 7 месяцев назад
Yarn is basically faster than npm, so a lot of people prefer yarn. It's quite like how a lot of people use axio instead of the built in fetch api
Далее
Automation with Docker for CI/CD Workflows
33:15
Просмотров 8 тыс.
Суши из арбуза?!
00:34
Просмотров 715 тыс.
Dockerize Next.js & Deploy to VPS (EASY!)
19:43
Просмотров 47 тыс.
My Problem with Next.js Server Actions
10:13
Просмотров 16 тыс.
Next.js deployed with Docker. Does it make sense?
20:15
Move Mountains With Next.js and Compose
19:24
Просмотров 3,4 тыс.
Intel's CPUs Are Failing, ft. Wendell of Level1 Techs
23:59
React server components from scratch!
19:43
Просмотров 30 тыс.
100+ Docker Concepts you Need to Know
8:28
Просмотров 857 тыс.
Здесь упор в процессор
18:02
Просмотров 317 тыс.
Здесь упор в процессор
18:02
Просмотров 317 тыс.