Port change #49
13
Dockerfile
13
Dockerfile
@@ -6,9 +6,6 @@ FROM rust:1.88 as builder
|
|||||||
# Set the working directory inside the container
|
# Set the working directory inside the container
|
||||||
WORKDIR /usr/src/app
|
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)
|
# Install build dependencies if needed (e.g., git for cloning)
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
pkg-config libssl3 \
|
pkg-config libssl3 \
|
||||||
@@ -16,10 +13,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
openssh-client git \
|
openssh-client git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# << --- ADD HOST KEY HERE --- >>
|
RUN mkdir -p ~/.ssh && \
|
||||||
# Replace 'yourgithost.com' with the actual hostname (e.g., github.com)
|
echo "Host git.kundeng.us" >> ~/.ssh/config && \
|
||||||
RUN mkdir -p -m 0700 ~/.ssh && \
|
echo " User git" >> ~/.ssh/config && \
|
||||||
ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts
|
chmod 600 ~/.ssh/config
|
||||||
|
|
||||||
|
RUN ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
# Copy Cargo manifests
|
# Copy Cargo manifests
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
|
Reference in New Issue
Block a user