From 03b8b26c407e245400806cc28d60808809651e76 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Tue, 22 Jul 2025 21:26:03 -0400 Subject: [PATCH] Cleaning up Dockerfile --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f18a224..d809e75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,9 @@ # Stage 1: Build the application -# Use a specific Rust version for reproducibility. Choose one that matches your development environment. -# Using slim variant for smaller base image 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,7 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ openssh-client git \ && rm -rf /var/lib/apt/lists/* -RUN mkdir -p ~/.ssh && \ +# Create .ssh/ directory for internal dependencies +RUN mkdir -p -m 0700 ~/.ssh && \ echo "Host git.kundeng.us" >> ~/.ssh/config && \ echo " User git" >> ~/.ssh/config && \ chmod 600 ~/.ssh/config