18 lines
451 B
Docker
18 lines
451 B
Docker
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;"]
|