back interdiff of round #2 and #1

docker compose file #1

closed
opened by teal.fm targeting master from docker
REVERTED
docker-compose.yml
···
-
version: "3.8"
-
-
services:
-
discordhose:
-
build: .
-
environment:
-
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
-
env_file:
-
- .env
-
restart: unless-stopped
-
volumes:
-
- ./.env:/app/.env:ro
···
NEW
Cargo.toml
···
[package]
name = "discordhose"
version = "0.1.0"
-
edition = "2024"
[dependencies]
anyhow = "1.0.99"
···
[package]
name = "discordhose"
version = "0.1.0"
+
edition = "2021"
[dependencies]
anyhow = "1.0.99"
NEW
Dockerfile
···
# Use the official Rust image
-
FROM rust:1.75-slim as builder
# Set working directory
WORKDIR /app
···
# Runtime stage
FROM debian:bookworm-slim
# Create app user
RUN useradd -r -s /bin/false appuser
···
# Use the official Rust image
+
FROM rust:1.82-slim as builder
+
+
# Install build dependencies
+
RUN apt-get update && apt-get install -y \
+
pkg-config \
+
libssl-dev \
+
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
···
# Runtime stage
FROM debian:bookworm-slim
+
# Install runtime dependencies
+
RUN apt-get update && apt-get install -y \
+
ca-certificates \
+
&& rm -rf /var/lib/apt/lists/*
+
# Create app user
RUN useradd -r -s /bin/false appuser