Add requirements for dockerization
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM nginx:latest
|
||||
|
||||
# Remove the default Nginx configuration file
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
# Copy our custom configuration
|
||||
COPY nginx.conf /etc/nginx/conf.d/jmpgames.conf
|
||||
|
||||
# Create the directory and copy website files
|
||||
# Ensure the folder structure matches your 'root' directive in nginx.conf
|
||||
WORKDIR /var/www/jmpgames.it
|
||||
COPY..
|
||||
|
||||
# Fix permissions so Nginx can read the files
|
||||
RUN chown -R nginx:nginx /var/www/jmpgames.it && \
|
||||
chmod -R 755 /var/www/jmpgames.it
|
||||
|
||||
# Expose port 80 (internal container port)
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user