From 31cb918be9256fa57276fecbaac4cb2948e4f9ab Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 15 Apr 2023 21:56:47 +0200 Subject: [PATCH] reduce run and delete apt list --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e649245..68fea5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,9 @@ RUN cargo install --path . FROM debian:bullseye-slim -RUN apt-get update -RUN apt-get install -y ca-certificates +RUN apt-get update && apt-get install -y \ + ca-certificates \ + && rm -rf /var/lib/apt/lists/* RUN mkdir /app WORKDIR /app @@ -21,7 +22,7 @@ COPY --from=builder /usr/src/ewp/static /app/static COPY --from=builder /usr/src/ewp/templates /app/templates COPY --from=builder /usr/src/ewp/data /app/data -RUN mkdir /app/config -RUN touch /app/config/config.toml +RUN mkdir /app/config \ + && touch /app/config/config.toml CMD [ "./ewp" ]