diff --git a/Dockerfile b/Dockerfile index 71e49286de6d15a9ed91cb69b91cdd3aef7a8ee5..2ec9be3d6d8449a00d605972350fc85098187b52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,8 @@ RUN npm run build FROM nginx:alpine # Copy the built React app to Nginx's web server directory -COPY --from=build /app/build /usr/share/nginx/html - +COPY --from=build /app/build /usr/src/app +COPY nginx/default.conf /etc/nginx/conf.d/default.conf # Expose port 80 for the Nginx server EXPOSE 80 diff --git a/nginx/Dockerfile b/nginx/Dockerfile deleted file mode 100644 index 7a23a4cff03f7f516af24d386e43f359a7ba615e..0000000000000000000000000000000000000000 --- a/nginx/Dockerfile +++ /dev/null @@ -1,2 +0,0 @@ -FROM nginx:1.25.3 -COPY default.conf /etc/nginx/conf.d/default.conf \ No newline at end of file