Skip to content

Commit 076ee86

Browse files
author
Devdutt Shenoi
committed
feat: use alpine as base image
1 parent 35efb17 commit 076ee86

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@
1414
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515

1616
# build stage
17-
FROM rust:1.83.0-bookworm as builder
17+
FROM rust:1.83.0-alpine AS builder
1818

1919
LABEL org.opencontainers.image.title="Parseable"
2020
LABEL maintainer="Parseable Team <[email protected]>"
2121
LABEL org.opencontainers.image.vendor="Parseable Inc"
2222
LABEL org.opencontainers.image.licenses="AGPL-3.0"
2323

24+
# Install dependencies for build
25+
RUN apk add --no-cache musl-dev gcc git
26+
2427
WORKDIR /parseable
2528
COPY . .
2629
RUN cargo build --release
2730

28-
# final stage
29-
FROM gcr.io/distroless/cc-debian12:latest
31+
# Final stage with a minimal runtime image
32+
FROM alpine:latest
3033

3134
WORKDIR /parseable
3235

0 commit comments

Comments
 (0)