refactor
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user