Skip to content
Snippets Groups Projects
Unverified Commit e763c161 authored by Robby3St's avatar Robby3St
Browse files

feat{Dockerfile, .gitlab-ci}: add Debian image

parent 09d711f6
No related branches found
No related tags found
No related merge requests found
Pipeline #283482 failed
...@@ -2,8 +2,8 @@ stages: ...@@ -2,8 +2,8 @@ stages:
- distribute - distribute
distribute: distribute:
only: # only:
- main # - main
stage: distribute stage: distribute
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
...@@ -15,5 +15,5 @@ distribute: ...@@ -15,5 +15,5 @@ distribute:
/kaniko/executor /kaniko/executor
--context "${CI_PROJECT_DIR}" --context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile" --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:1.0.2" --destination "${CI_REGISTRY_IMAGE}-debian:1.0.0"
FROM ubuntu:24.04 FROM debian:12 AS debian-glibc-2.38
# Install Google Chrome RUN apt-get update && apt-get upgrade -y && apt-get install -y \
RUN apt-get install -y wget curl curl \
ENV DEBIAN_FRONTEND noninteractive wget \
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - build-essential \
RUN sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' gawk \
RUN apt-get update bison \
RUN apt-get install -y google-chrome-stable python3
# Download and install Google Chrome RUN mkdir $HOME/glibc/ && cd $HOME/glibc && \
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ wget http://ftp.gnu.org/gnu/libc/glibc-2.38.tar.gz && \
apt-get update && apt-get install -y ./google-chrome-stable_current_amd64.deb || apt-get install -fy && \ tar -xvzf glibc-2.38.tar.gz && \
rm google-chrome-stable_current_amd64.deb mkdir build && \
mkdir glibc-2.38-install && \
cd build && \
~/glibc/glibc-2.38/configure --prefix=$HOME/glibc/glibc-2.38-install && \
make && \
make install
FROM debian-glibc-2.38 AS decker
# Install Decker # Install Decker
WORKDIR /usr/local/bin WORKDIR /usr/local/bin
RUN curl -L -o decker https://github.com/decker-edu/decker/releases/download/latest/decker-latest-Linux-X64-3f4150d61ca167361b02665da969da769ca98e7c RUN curl -L -o decker https://github.com/decker-edu/decker/releases/download/latest/decker-latest-Linux-X64-c6061d1f99075ffbc2b72e6922aa559058951327
RUN chmod +x decker RUN chmod +x decker
# Add a working directory # Add a working directory
WORKDIR / WORKDIR /
RUN mkdir app # RUN mkdir app
WORKDIR /app WORKDIR /app
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment