feat(docker): dockerized and added auto upload actions
Some checks failed
Cloud Actions / Dockerhub (push) Failing after 54s

This commit is contained in:
2025-05-22 16:01:55 -06:00
parent 4065642393
commit 56b5463142
5 changed files with 91 additions and 5 deletions

24
dockerfile Normal file
View File

@ -0,0 +1,24 @@
# ----------- Build Stage -----------
FROM rust:1.87-slim AS builder
WORKDIR /darkicewolf50_cloud
# Install build dependencies
RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
# Copy source and build
COPY . .
RUN cargo build --release
# ----------- Runtime Stage -----------
FROM debian:bookworm-slim
# Install runtime dependencies (e.g., for OpenSSL if needed)
RUN apt-get update && apt-get install -y libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /darkicewolf50_cloud
COPY --from=builder /darkicewolf50_cloud/target/release/darkicewolf50_cloud .
EXPOSE 8000
CMD ["./darkicewolf50_cloud"]