Skip to content

Commit

Permalink
build: deploy with alpine?
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceunx committed Dec 4, 2024
1 parent 4131c07 commit 36e12ff
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 36e12ff

Please sign in to comment.