The Dockerfile I Am Using To Build And Run My Spring Boot Apps

  Рет қаралды 205

Alex Gutjahr

Alex Gutjahr

Күн бұрын

Y'all! In this tutorial, I share the Dockerfile I use to build and run my Spring Boot apps in production using Docker.
🍃 Code & Resources
Grab the code for this tutorial here axgr.dev/posts/spring-dockerf...
🙌 Get in Touch
Join my newsletter and say hi here axgr.dev/newsletter/?...
🎙 Gear & Links
Mechanical Keyboard: x.axgr.dev/keyboard
Studio Camera: x.axgr.dev/studio-camera
Studio Lens: x.axgr.dev/studio-lens
Studio Mic: x.axgr.dev/studio-mic
Vlog Camera: x.axgr.dev/vlog-camera
Vlog Lens: x.axgr.dev/vlog-lens
All my affiliate links axgr.dev/deals/?...
I may earn a small commission for purchases made through the links above at no additional cost to you.
🎶 Music
Background music by / @kainbeats
🍿 Subscribe
Want to see more tech tutorials? Subscribe now!

Пікірлер: 6
@AGAGARCIA
@AGAGARCIA 8 ай бұрын
Excellent video tutorial. Thanks for sharing with us. It is a pleasure to watch your videos because of the clarity, precision of your explanations and knowledge on the subject.
@alexgutjahr
@alexgutjahr 8 ай бұрын
Thank you so much for the kind words! 🙏
@user-iu6yz6ck6h
@user-iu6yz6ck6h 9 ай бұрын
Thank you so much for the video! I think I'm going to need it soon
@alexgutjahr
@alexgutjahr 9 ай бұрын
Excellent! Glad to hear that!
@LucasKrauseS
@LucasKrauseS 4 ай бұрын
Cool stuff! I've got to your video as I was having issues with the JarLauncher without the .launch. I am using mvn, and here is the code if anyone is interested :) FROM eclipse-temurin:21-jre-alpine AS builder WORKDIR application ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} application.jar RUN java -Djarmode=layertools -jar application.jar extract FROM eclipse-temurin:21-jre-alpine AS final RUN addgroup -S spring && adduser -S spring -G spring USER spring:spring WORKDIR application COPY --from=builder application/dependencies/ ./ COPY --from=builder application/snapshot-dependencies/ ./ COPY --from=builder application/spring-boot-loader/ ./ COPY --from=builder application/application/ ./ EXPOSE 8080 ENTRYPOINT ["java", "org.springframework.boot.loader.launch.JarLauncher"]
@alexgutjahr
@alexgutjahr 3 ай бұрын
Cool, thanks for sharing that!
How to Render Beautiful PDFs from HTML with Spring MVC
13:43
Alex Gutjahr
Рет қаралды 359
How To JSON Patch in REST Controller and Spring Boot 3
9:57
Alex Gutjahr
Рет қаралды 1 М.
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 15 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 29 МЛН
Build YOUR OWN Dockerfile, Image, and Container - Docker Tutorial
18:20
How I Setup Neovim To Make It AMAZING in 2024: The Ultimate Guide
1:26:35
Josean Martinez
Рет қаралды 198 М.
How To Manage Cookies with Spring MVC and Spring Boot
8:11
Alex Gutjahr
Рет қаралды 1,1 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 58 М.
React for Two Computers | Dan Abramov
28:56
React Conf
Рет қаралды 16 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,8 МЛН
Linux from Scratch
2:35:42
Titus Tech Talk
Рет қаралды 138 М.
How To Use Docker To Make Local Development A Breeze
21:53
ArjanCodes
Рет қаралды 307 М.
ПС 110/10. Кто то подключил "левак" 110000 вольт!?
0:34
Советы электрика
Рет қаралды 539 М.
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 6 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 20 МЛН
Ускоряем ваш TV🚀
0:44
ARTEM_CHIBA
Рет қаралды 748 М.