# Use the official lightweight Nginx image FROM nginx:alpine # Set the working directory inside the container WORKDIR /usr/share/nginx/html # 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