|
|
|
|
|
FROM ich777/microsoft-edge |
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
wget \ |
|
|
gnupg2 \ |
|
|
software-properties-common \ |
|
|
&& apt-get update \ |
|
|
&& apt-get install -y python3.11 python3.11-venv \ |
|
|
&& apt-get install -y python3-pip \ |
|
|
&& apt-get clean |
|
|
|
|
|
|
|
|
RUN ln -s /usr/bin/python3.11 /usr/bin/python |
|
|
|
|
|
|
|
|
|
|
|
RUN useradd -m -s /bin/bash appuser |
|
|
|
|
|
|
|
|
WORKDIR /opt/scripts |
|
|
|
|
|
|
|
|
COPY . /opt/scripts |
|
|
RUN chmod +x /opt/scripts/start.sh |
|
|
|
|
|
RUN chown -R appuser:appuser /opt/scripts |
|
|
|
|
|
RUN cat /opt/scripts/start.sh |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN pip install --ignore-installed --break-system-packages -r requirements.txt |
|
|
|
|
|
RUN mkdir -p /opt/scripts && chmod +x /opt/scripts/start.sh |
|
|
|
|
|
|
|
|
USER root |
|
|
|
|
|
|
|
|
RUN mkdir -p /var/lib/apt/lists/partial && chmod 755 /var/lib/apt/lists/partial |
|
|
|
|
|
USER appuser |
|
|
|
|
|
|
|
|
CMD ["python3.11", "main.py && /opt/scripts/start.sh"] |