18 lines
427 B
Docker
18 lines
427 B
Docker
|
|
FROM nginx:alpine
|
||
|
|
|
||
|
|
# Copy pre-built files from local dist directory
|
||
|
|
COPY Nitro-Cool-UI/dist /usr/share/nginx/html
|
||
|
|
|
||
|
|
# Copy nginx configuration
|
||
|
|
COPY cool-ui/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/ || exit 1
|
||
|
|
|
||
|
|
# Start nginx
|
||
|
|
CMD ["nginx", "-g", "daemon off;"]
|