Skip to content

Commit

Permalink
Fixed repology repository for gcc in Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
simao-silva committed Nov 8, 2023
1 parent 0070747 commit 8c6cc80
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"

ARG PIP_VERSION

# renovate: datasource=repology depName=debian_12/gcc-12 versioning=loose
# renovate: datasource=repology depName=debian_12/gcc versioning=loose
ARG GCC_VERSION="4:12.2.0-3"

# renovate: datasource=repology depName=debian_12/glibc versioning=loose
Expand Down Expand Up @@ -62,62 +62,62 @@ RUN python3 -m venv $VIRTUAL_ENV && \



FROM python:3.12.0-slim-bookworm@sha256:80571b64ab7b94950d49d413f074e1932b65f6f75e0c34747b40ea41889a2ca9 AS geckodriver
# FROM python:3.12.0-slim-bookworm@sha256:80571b64ab7b94950d49d413f074e1932b65f6f75e0c34747b40ea41889a2ca9 AS geckodriver

SHELL ["/bin/bash", "-c"]
# SHELL ["/bin/bash", "-c"]

# Disable any user interaction
ENV DEBIAN_FRONTEND=noninteractive
# # Disable any user interaction
# ENV DEBIAN_FRONTEND=noninteractive

ARG GECKODRIVER_VERSION
# ARG GECKODRIVER_VERSION

# renovate: datasource=repology depName=debian_12/curl versioning=loose
ARG CURL_VERSION="7.88.1-10+deb12u4"
# # renovate: datasource=repology depName=debian_12/curl versioning=loose
# ARG CURL_VERSION="7.88.1-10+deb12u4"

# Install required packages
RUN apt-get update && \
apt-get install -y --no-install-recommends curl="${CURL_VERSION}"
# # Install required packages
# RUN apt-get update && \
# apt-get install -y --no-install-recommends curl="${CURL_VERSION}"

# Download geckodriver
RUN set -x && \
if [ "$(uname --m)" == "x86_64" ]; then ARCH="linux64"; elif [ "$(uname --m)" == "aarch64" ]; then ARCH="linux-aarch64"; else ARCH="linux32"; fi && \
curl -sSL -O https://github.com/mozilla/geckodriver/releases/download/v"${GECKODRIVER_VERSION}"/geckodriver-v"${GECKODRIVER_VERSION}"-"${ARCH}".tar.gz && \
tar zxf geckodriver-v"${GECKODRIVER_VERSION}"-"${ARCH}".tar.gz
# # Download geckodriver
# RUN set -x && \
# if [ "$(uname --m)" == "x86_64" ]; then ARCH="linux64"; elif [ "$(uname --m)" == "aarch64" ]; then ARCH="linux-aarch64"; else ARCH="linux32"; fi && \
# curl -sSL -O https://github.com/mozilla/geckodriver/releases/download/v"${GECKODRIVER_VERSION}"/geckodriver-v"${GECKODRIVER_VERSION}"-"${ARCH}".tar.gz && \
# tar zxf geckodriver-v"${GECKODRIVER_VERSION}"-"${ARCH}".tar.gz



FROM python:3.12.0-slim-bookworm@sha256:80571b64ab7b94950d49d413f074e1932b65f6f75e0c34747b40ea41889a2ca9
# FROM python:3.12.0-slim-bookworm@sha256:80571b64ab7b94950d49d413f074e1932b65f6f75e0c34747b40ea41889a2ca9

# Disable any user interaction
ENV DEBIAN_FRONTEND=noninteractive
# # Disable any user interaction
# ENV DEBIAN_FRONTEND=noninteractive

# renovate: datasource=repology depName=debian_12/firefox-esr versioning=loose
ARG FIREFOX_VERSION="115.4.0esr-1~deb12u1"
# # renovate: datasource=repology depName=debian_12/firefox-esr versioning=loose
# ARG FIREFOX_VERSION="115.4.0esr-1~deb12u1"

# Install required packages
RUN apt-get update && \
apt-get install -y --no-install-recommends firefox-esr="${FIREFOX_VERSION}" && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc /usr/share/man
# # Install required packages
# RUN apt-get update && \
# apt-get install -y --no-install-recommends firefox-esr="${FIREFOX_VERSION}" && \
# apt-get autoremove -y && \
# apt-get clean && \
# rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc /usr/share/man

# Fix vulnerabilities reported by Trivy
ARG PIP_VERSION
RUN /usr/local/bin/pip install --upgrade pip=="${PIP_VERSION}"
# # Fix vulnerabilities reported by Trivy
# ARG PIP_VERSION
# RUN /usr/local/bin/pip install --upgrade pip=="${PIP_VERSION}"

# Enable custom virtual environment
ENV VIRTUAL_ENV=/opt/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# # Enable custom virtual environment
# ENV VIRTUAL_ENV=/opt/venv
# ENV PATH="$VIRTUAL_ENV/bin:$PATH"

# Copy dependencies from previous stage
COPY --from=builder $VIRTUAL_ENV $VIRTUAL_ENV
# # Copy dependencies from previous stage
# COPY --from=builder $VIRTUAL_ENV $VIRTUAL_ENV

# Copy geckodriver from previous stage
COPY --from=geckodriver --chmod=755 /geckodriver /usr/local/bin/geckodriver
# # Copy geckodriver from previous stage
# COPY --from=geckodriver --chmod=755 /geckodriver /usr/local/bin/geckodriver

# Set the working directory
WORKDIR /app
# # Set the working directory
# WORKDIR /app

# Copy and set the entrypoint bash script
COPY renew.py .
ENTRYPOINT ["python3", "renew.py"]
# # Copy and set the entrypoint bash script
# COPY renew.py .
# ENTRYPOINT ["python3", "renew.py"]

0 comments on commit 8c6cc80

Please sign in to comment.