-
-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# App Store Screenshot Generator
# Lightweight nginx container serving static files
FROM nginx:alpine
LABEL maintainer="App Store Screenshot Generator"
LABEL description="Browser-based tool for creating App Store marketing screenshots"
# Remove default nginx static assets
RUN rm -rf /usr/share/nginx/html/*
# Copy application files
COPY index.html /usr/share/nginx/html/
COPY app.js /usr/share/nginx/html/
COPY styles.css /usr/share/nginx/html/
COPY three-renderer.js /usr/share/nginx/html/
COPY language-utils.js /usr/share/nginx/html/
COPY magical-titles.js /usr/share/nginx/html/
COPY llm.js /usr/share/nginx/html/
# Copy assets
COPY models/ /usr/share/nginx/html/models/
COPY img/ /usr/share/nginx/html/img/
# Copy custom nginx configuration for SPA and caching
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1
# Start nginx
CMD ["nginx", "-g", "daemon off;"]