Files
eveAI/docker/nginx/Dockerfile
Josako 16ce59ae98 - Introduce cache busting (to circumvent aggressive caching on iOS - but ideal in other contexts as well)
- Change the build process to allow cache busting
- Optimisations to the build process
- Several improvements of UI geared towards mobile experience
-
2025-09-25 17:28:01 +02:00

33 lines
864 B
Docker

# Use the official Nginx image as the base image
ARG TARGETPLATFORM
FROM --platform=$TARGETPLATFORM nginx:latest
# Ensure we use user root
USER root
# Copy the custom Nginx configuration file into the container
COPY ../../nginx/nginx.conf /etc/nginx/nginx.conf
# Copy the mime.types file into the container
COPY ../../nginx/mime.types /etc/nginx/mime.types
# Copy static & public files
RUN mkdir -p /etc/nginx/static /etc/nginx/public
COPY ../../nginx/static /etc/nginx/static
# Copy public files
COPY ../../nginx/public /etc/nginx/public
# Copy site-specific configurations
RUN mkdir -p /etc/nginx/sites-enabled
COPY ../../nginx/sites-enabled/ /etc/nginx/sites-enabled/
# Ensure log directory exists
RUN mkdir -p /var/log/nginx
# Expose the necessary port
EXPOSE 80
EXPOSE 8080
# Start Nginx when the container starts
# CMD ["nginx", "-g", "daemon off;"]