From 7e938072982463abb25348fb1106287c2c5ac5af Mon Sep 17 00:00:00 2001 From: Quaternions <krakow20@gmail.com> Date: Thu, 3 Apr 2025 19:04:13 -0700 Subject: [PATCH] docker: use itzaname docker proxy to avoid getting rate-limited --- Containerfile | 4 ++-- validation/Containerfile | 4 ++-- web/Containerfile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Containerfile b/Containerfile index 4843f8a..92d7328 100644 --- a/Containerfile +++ b/Containerfile @@ -1,5 +1,5 @@ # Stage 1: Build -FROM docker.io/golang:1.23 AS builder +FROM registry.itzana.me/docker-proxy/golang:1.24 AS builder # Set the working directory in the container WORKDIR /app @@ -14,7 +14,7 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o service ./cmd/maps-service/service.go # Stage 2: Run -FROM alpine +FROM registry.itzana.me/docker-proxy/alpine:3.21 # Set up a non-root user for security RUN addgroup -S appgroup && adduser -S appuser -G appgroup diff --git a/validation/Containerfile b/validation/Containerfile index 1a2bbd9..2e76d3e 100644 --- a/validation/Containerfile +++ b/validation/Containerfile @@ -1,6 +1,6 @@ # Using the `rust-musl-builder` as base image, instead of # the official Rust toolchain -FROM docker.io/clux/muslrust:stable AS chef +FROM registry.itzana.me/docker-proxy/clux/muslrust:stable AS chef USER root RUN cargo install cargo-chef WORKDIR /app @@ -17,7 +17,7 @@ RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path r COPY . . RUN cargo build --release --target x86_64-unknown-linux-musl --bin maps-validation -FROM docker.io/alpine:latest AS runtime +FROM registry.itzana.me/docker-proxy/alpine:3.21 AS runtime RUN addgroup -S myuser && adduser -S myuser -G myuser COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/maps-validation /usr/local/bin/ USER myuser diff --git a/web/Containerfile b/web/Containerfile index 4bc5f08..1bcca3c 100644 --- a/web/Containerfile +++ b/web/Containerfile @@ -1,4 +1,4 @@ -FROM oven/bun:latest +FROM registry.itzana.me/docker-proxy/oven/bun:1.2.8 WORKDIR /app @@ -10,4 +10,4 @@ ENV NEXT_TELEMETRY_DISABLED=1 RUN bun install RUN bun run build -ENTRYPOINT ["bun", "run", "start"] \ No newline at end of file +ENTRYPOINT ["bun", "run", "start"]