lg-service-menu/Dockerfile
Alexandre Blanco Gomez 9cc4e80c30 Migrate from gitea
2025-09-12 11:14:36 +02:00

43 lines
1.4 KiB
Docker

# For more information, please refer to https://aka.ms/vscode-docker-python
# Use the official Nginx image from Docker Hub
FROM debian:bookworm-slim
# Copy static files (optional)
#COPY html/ /usr/share/nginx/html/
# Expose ports (default is 80 for HTTP and 443 for HTTPS)
EXPOSE 80
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
RUN apt-get update
RUN apt-get install -y --no-install-recommends python3-pip
RUN apt-get install -y --no-install-recommends systemctl procps
RUN apt-get install -y --no-install-recommends lighttpd
RUN lighty-enable-mod cgi
# Copy custom configuration file (optional)
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
COPY service-menu.sh /var/www/html/service-menu.sh
RUN pip install bscpylgtv --break-system-packages
CMD ["/bin/bash", "systemctl start lighttpd"]
#WORKDIR /app
#COPY . /app
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
#RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
#USER appuser
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
#CMD ["python", "-m", "myapp.manage"]