--no-install-recommends to trim image size
All checks were successful
Build and Deploy to K3s / build-and-push (push) Successful in 5m30s
Build and Deploy to K3s / deploy (push) Successful in 8s

This commit is contained in:
jasonwitty 2025-11-28 16:22:08 -08:00
parent 2012504616
commit 9fb9d9ab50

View File

@ -23,15 +23,16 @@ RUN mkdir src && \
echo "fn main() {}" > src/server.rs && \
echo "pub fn lib() {}" > src/lib.rs && \
cargo build --release && \
rm -rf src
rm -rf src target/release/webterm-server target/release/deps/webterm*
# Copy actual source code
COPY src ./src
COPY templates ./templates
COPY static ./static
# Build the actual application
RUN cargo build --release && \
# Build the actual application (force rebuild by touching sources)
RUN touch src/server.rs src/lib.rs && \
cargo build --release && \
strip target/release/webterm-server
# ============================================================================