chore: clean up apt artifacts

This commit is contained in:
Reinaldy Rafli 2022-09-10 20:09:55 +07:00
parent 4920a2813b
commit 151bbd3b31
No known key found for this signature in database
GPG Key ID: EA1B2522C1693EC8
2 changed files with 7 additions and 1 deletions

View File

@ -10,7 +10,9 @@ FROM debian:bullseye AS runtime
WORKDIR /app
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl
RUN apt-get update && apt-get upgrade --no-install-recommends -y \
&& apt-get install -y --no-install-recommends curl \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/main .

View File

@ -1,5 +1,9 @@
FROM node:16.17.0-bullseye
RUN apt-get update && apt-get upgrade --no-install-recommends -y \
&& apt-get install -y --no-install-recommends curl \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .