Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 6429129

Browse files
committed
Changed base image to be debian based
1 parent d4f674d commit 6429129

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
FROM rust:alpine as Builder
1+
FROM rust:latest as Builder
22
# copy src
33
WORKDIR /workdir
44
ADD . ./
55
# update base image
6-
RUN apk update
7-
RUN apk add --no-cache openssl-dev musl-dev
6+
RUN apt-get update && apt-get upgrade --yes
87
# run
98
RUN cargo clean
109
RUN cargo build --release
1110

1211
# run in scratch
13-
FROM alpine:latest
14-
RUN apk --no-cache add ca-certificates
12+
FROM debian:stable-slim
1513
COPY --from=Builder \
1614
/workdir/target/release/ftp-fighter \
1715
/usr/local/bin/

0 commit comments

Comments
 (0)