local changes DEV
This commit is contained in:
11
dev/docker deploy.md
Normal file
11
dev/docker deploy.md
Normal 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
|
Reference in New Issue
Block a user