728x90
1. 개발환경 로그인 후 이미지 올리기
docker login
docker build -t tomhoon/react-app:latest .
docker push tomhoon/react-app:latest
2. 운영에서 풀받아서 컨테이너 띄우기
docker pull tomhoon/react-app:latest
배포환경이 리눅스인 경우 다음과 같이 이미지 푸시한다
docker buildx build --platform linux/amd64,linux/arm64 -t tomhoon/deploy-back:latest --push .
이미지 빌드와 푸시 한번에 처리
'서버' 카테고리의 다른 글
| mac - docker access token으로 로그인하기 (0) | 2025.12.26 |
|---|---|
| SEO 클로킹 당한 내용 정리(리다이렉트 해킹) (0) | 2025.12.26 |
| mac - node, nvm 설치 (0) | 2025.11.02 |
| mac - brew 설치 (0) | 2025.11.02 |
| OG 태그 이미지 적용 - 카카오톡 공유하기 이미지 바로 적용 안되는 현상 해결 (0) | 2025.10.25 |