Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f30cc21a5a | |||
| 95630f19b0 | |||
| eecc469ad9 |
@@ -45,6 +45,7 @@ ArgoCD homelab project
|
|||||||
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
||||||
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
||||||
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
||||||
|
| **mtproxy** | [](https://ag.hexor.cy/applications/argocd/mtproxy) |
|
||||||
| **n8n** | [](https://ag.hexor.cy/applications/argocd/n8n) |
|
| **n8n** | [](https://ag.hexor.cy/applications/argocd/n8n) |
|
||||||
| **ollama** | [](https://ag.hexor.cy/applications/argocd/ollama) |
|
| **ollama** | [](https://ag.hexor.cy/applications/argocd/ollama) |
|
||||||
| **paperless** | [](https://ag.hexor.cy/applications/argocd/paperless) |
|
| **paperless** | [](https://ag.hexor.cy/applications/argocd/paperless) |
|
||||||
|
|||||||
@@ -1,12 +1,32 @@
|
|||||||
FROM debian:bookworm-slim AS builder
|
FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS builder
|
||||||
|
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git curl build-essential libssl-dev zlib1g-dev \
|
git curl make gcc libssl-dev zlib1g-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN if [ "$(dpkg --print-architecture)" != "$TARGETARCH" ]; then \
|
||||||
|
dpkg --add-architecture $TARGETARCH && \
|
||||||
|
apt-get update && \
|
||||||
|
case "$TARGETARCH" in \
|
||||||
|
arm64) apt-get install -y gcc-aarch64-linux-gnu libssl-dev:arm64 zlib1g-dev:arm64 ;; \
|
||||||
|
amd64) apt-get install -y gcc-x86-64-linux-gnu libssl-dev:amd64 zlib1g-dev:amd64 ;; \
|
||||||
|
esac && \
|
||||||
|
rm -rf /var/lib/apt/lists/*; \
|
||||||
|
fi
|
||||||
|
|
||||||
RUN git clone https://github.com/TelegramMessenger/MTProxy.git /src
|
RUN git clone https://github.com/TelegramMessenger/MTProxy.git /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN make -j$(nproc)
|
|
||||||
|
RUN NATIVE=$(dpkg --print-architecture) && \
|
||||||
|
if [ "$NATIVE" != "$TARGETARCH" ]; then \
|
||||||
|
case "$TARGETARCH" in \
|
||||||
|
arm64) export CC=aarch64-linux-gnu-gcc ;; \
|
||||||
|
amd64) export CC=x86_64-linux-gnu-gcc ;; \
|
||||||
|
esac; \
|
||||||
|
fi && \
|
||||||
|
make -j$(nproc)
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user