Port change #49
18
Dockerfile
18
Dockerfile
@@ -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 ./
|
||||
|
||||
|
Reference in New Issue
Block a user