Files

18 lines
451 B
Docker
Raw Permalink Normal View History

2025-12-09 06:52:43 +00:00
FROM nginx:alpine
# Copy assets to nginx html directory
COPY nitro-assets/nitro-assets/ /usr/share/nginx/html/
# Copy nginx configuration
COPY asset-server/nginx.conf /etc/nginx/conf.d/default.conf
# Expose port
EXPOSE 80
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost/gamedata/UITexts.json || exit 1
# Start nginx
CMD ["nginx", "-g", "daemon off;"]