From 36e12ff9ce9867d0a11724347d05105cca819952 Mon Sep 17 00:00:00 2001 From: bruce Date: Wed, 4 Dec 2024 10:21:27 +0800 Subject: [PATCH] build: deploy with alpine? --- Dockerfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c0431c..87b3a37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,19 @@ COPY . . RUN cargo build --release -FROM debian:bullseye-slim -RUN apt-get update && \ - apt-get install -y openssl ca-certificates && \ - rm -rf /var/lib/apt/lists/* +FROM alpine:3.20 + +RUN apk add --no-cache \ + libgcc \ + openssl \ + ca-certificates + +# FROM debian:bullseye-slim +# +# RUN apt-get update && \ +# apt-get install -y openssl ca-certificates && \ +# rm -rf /var/lib/apt/lists/* WORKDIR /app