This commit is contained in:
cpu
2025-03-29 03:45:26 +01:00
parent 5763407edc
commit 832f19235f
31 changed files with 373 additions and 139 deletions

View File

@@ -1,12 +1,14 @@
# Use the official Nginx image as the base image
# Use a lightweight server
FROM nginx:alpine
# Remove the default Nginx static files
RUN rm -rf /usr/share/nginx/html/*
# Set working directory
WORKDIR /usr/share/nginx/html
# Copy public directory contents into the Nginx directory
COPY public/ /usr/share/nginx/html/
COPY src/ /usr/share/nginx/html/src/
# Copy all the application files
COPY . .
# Copy the .env file
COPY .env .
# Expose port 80
EXPOSE 80