CHANGE: Last iteration with Gemini. It's a bit dumb :D
This commit is contained in:
		
							
								
								
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -1,8 +1,13 @@ | ||||
| # Use the official Nginx image from Docker Hub | ||||
| # Use the official lightweight Nginx image | ||||
| FROM nginx:alpine | ||||
|  | ||||
| # Copy index.html to the default Nginx public folder | ||||
| COPY index.html /usr/share/nginx/html/ | ||||
| # Set the working directory inside the container | ||||
| WORKDIR /usr/share/nginx/html | ||||
|  | ||||
| # Listen on port 80 | ||||
| # Copy all project files from the build context to the working directory | ||||
| # The '.' means 'copy everything from the current folder (my-portfolio)' | ||||
| # into the WORKDIR of the container. This is the key fix. | ||||
| COPY . . | ||||
|  | ||||
| # Expose port 80 to the Docker host | ||||
| EXPOSE 80 | ||||
		Reference in New Issue
	
	Block a user