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

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

parent 09d711f6
Branches feat/debian
No related tags found
1 merge request!1feat{Dockerfile, .gitlab-ci}: add Debian image
Pipeline #283483 passed
......@@ -2,8 +2,8 @@ stages:
- distribute
distribute:
only:
- main
# only:
# - main
stage: distribute
image:
name: gcr.io/kaniko-project/executor:debug
......@@ -15,5 +15,5 @@ distribute:
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:1.0.2"
--destination "${CI_REGISTRY_IMAGE}:1.0.3"
FROM ubuntu:24.04
FROM debian:12 AS debian-glibc-2.38
# Install Google Chrome
RUN apt-get install -y wget curl
ENV DEBIAN_FRONTEND noninteractive
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
RUN sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
RUN apt-get update
RUN apt-get install -y google-chrome-stable
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
curl \
wget \
build-essential \
gawk \
bison \
python3
# Download and install Google Chrome
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt-get update && apt-get install -y ./google-chrome-stable_current_amd64.deb || apt-get install -fy && \
rm google-chrome-stable_current_amd64.deb
RUN mkdir $HOME/glibc/ && cd $HOME/glibc && \
wget http://ftp.gnu.org/gnu/libc/glibc-2.38.tar.gz && \
tar -xvzf glibc-2.38.tar.gz && \
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
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
# Add a working directory
WORKDIR /
RUN mkdir app
# RUN mkdir app
WORKDIR /app
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment