local changes DEV

This commit is contained in:
Dobromir Popov
2024-04-08 12:36:16 +03:00
parent 56644db73f
commit dc2af0386d
10 changed files with 231 additions and 1 deletions

11
dev/docker deploy.md Normal file
View File

@ -0,0 +1,11 @@
# Step 1: Build the Docker Image
docker build -t my-next-app .
# Step 2: Save the Docker Image
docker save my-next-app > my-next-app.tar
# Step 3: Transfer the Image to the Production Server
scp my-next-app.tar user@your-server-ip:/path/to/directory
# Step 4: Load the Image on the Production Server
ssh user@your-server-ip
docker load < my-next-app.tar
# Step 5: Run the Docker Container
docker run -d -p 80:3000 my-next-app