This commit is contained in:
Joshua Higgins
2025-07-03 00:34:57 -04:00
parent 8e3edffb76
commit ac249330a1

View File

@@ -22,5 +22,14 @@ FROM nginx:latest
# Copy the built Vite application from the build stage to Nginx's web root # Copy the built Vite application from the build stage to Nginx's web root
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
# Remove the default Nginx configuration file
RUN rm /etc/nginx/conf.d/default.conf
# Copy a custom Nginx configuration file (see example below)
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
# Expose port 80 for web traffic # Expose port 80 for web traffic
EXPOSE 80 EXPOSE 80
# Start Nginx when the container launches
CMD ["nginx", "-g", "daemon off;"]