Serve the static site via nginx on port 80 and use local asset paths so images load outside Open Design. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
340 B
Docker
14 lines
340 B
Docker
FROM nginx:1.27-alpine
|
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
COPY *.html /usr/share/nginx/html/
|
|
COPY *.png /usr/share/nginx/html/
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD wget -qO- http://127.0.0.1/ || exit 1
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|