Cleaning up Docker file
Some checks failed
Rust Build / Check (pull_request) Failing after 26s
Rust Build / Test Suite (pull_request) Failing after 28s
Rust Build / Rustfmt (pull_request) Failing after 27s
Rust Build / Clippy (pull_request) Failing after 24s
Rust Build / build (pull_request) Failing after 25s

This commit is contained in:
2025-07-21 23:20:38 -04:00
parent 21c8b398e6
commit cb8807a95c

View File

@@ -6,9 +6,6 @@ FROM rust:1.88 as builder
# Set the working directory inside the container
WORKDIR /usr/src/app
# Install build dependencies if needed (e.g., for certain crates like sqlx with native TLS)
# RUN apt-get update && apt-get install -y pkg-config libssl-dev
# Install build dependencies if needed (e.g., git for cloning)
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config libssl3 \
@@ -16,28 +13,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
openssh-client git \
&& rm -rf /var/lib/apt/lists/*
# Configure SSH to use the custom port (e.g., 2222)
# Replace `your-git-server.com` with your actual Git host
RUN mkdir -p ~/.ssh && \
echo "Host git.kundeng.us" >> ~/.ssh/config && \
# echo " Port 8122" >> ~/.ssh/config && \
echo " User git" >> ~/.ssh/config && \
chmod 600 ~/.ssh/config
# << --- ADD HOST KEY HERE --- >>
# Replace 'yourgithost.com' with the actual hostname (e.g., github.com)
# RUN ssh-keyscan -p 8122 git.kundeng.us >> ~/.ssh/known_hosts
# RUN mkdir -p ~/.ssh && \
# ssh-keyscan -p 8122 git.kundeng.us >> ~/.ssh/known_hosts
RUN ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts
# RUN ssh-add -L
# Configure Git to use SSH (instead of HTTPS)
# RUN git config --global url."ssh://git@git.kundeng.us:8122".insteadOf "ssh://git.kundeng.us"
# RUN ssh -Tv git@git.kundeng.us -p 8122
# RUN ssh -Tv git@git.kundeng.us
# Copy Cargo manifests
COPY Cargo.toml Cargo.lock ./