mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 20:45:35 -04:00
Merge pull request #21 from smiggiddy/ai-fix-bad-dockerfiles
help ai fix its issues
This commit is contained in:
commit
23d651a21f
2 changed files with 0 additions and 9 deletions
|
@ -1,12 +1,6 @@
|
||||||
# Use an official Nginx image as the base image
|
# Use an official Nginx image as the base image
|
||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
|
|
||||||
# Remove default Nginx configuration
|
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
# Copy custom Nginx configuration
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d
|
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,6 @@ WORKDIR /app
|
||||||
# Copy the HTML, CSS, and JavaScript files from the current directory to /app
|
# Copy the HTML, CSS, and JavaScript files from the current directory to /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
# Copy the Nginx configuration file to /etc/nginx/conf.d/
|
|
||||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
# Expose port 80 for HTTP traffic
|
# Expose port 80 for HTTP traffic
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue