2026-04-11 09:33:10 -04:00
|
|
|
FROM git.tx1138.com/lfg2025/nginx:1.27.4-alpine
|
2026-03-19 17:02:17 +00:00
|
|
|
|
|
|
|
|
# Copy the HTML file
|
|
|
|
|
COPY index.html /usr/share/nginx/html/
|
|
|
|
|
COPY tailwind.css /usr/share/nginx/html/
|
|
|
|
|
COPY qrcode.js /usr/share/nginx/html/
|
|
|
|
|
|
|
|
|
|
# Create directories for assets
|
|
|
|
|
RUN mkdir -p /usr/share/nginx/html/assets/img/app-icons && \
|
|
|
|
|
mkdir -p /usr/share/nginx/html/assets/img
|
|
|
|
|
|
|
|
|
|
# Copy assets
|
|
|
|
|
COPY lnd.svg /usr/share/nginx/html/assets/img/app-icons/
|
|
|
|
|
COPY bg-web5.jpg /usr/share/nginx/html/assets/img/
|
|
|
|
|
COPY bg-intro.jpg /usr/share/nginx/html/assets/img/
|
|
|
|
|
|
|
|
|
|
# Copy nginx config
|
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
|
|
2026-04-02 10:34:58 +01:00
|
|
|
# Run nginx as root to avoid chown failures in rootless Podman user namespaces
|
|
|
|
|
RUN sed -i 's/^user nginx;/user root;/' /etc/nginx/nginx.conf && \
|
|
|
|
|
mkdir -p /var/cache/nginx/client_temp /var/cache/nginx/proxy_temp \
|
|
|
|
|
/var/cache/nginx/fastcgi_temp /var/cache/nginx/uwsgi_temp \
|
|
|
|
|
/var/cache/nginx/scgi_temp
|
2026-04-02 01:28:11 +01:00
|
|
|
EXPOSE 8080
|
2026-04-02 10:34:58 +01:00
|
|
|
ENTRYPOINT []
|
2026-03-19 17:02:17 +00:00
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|