From f1005fe77943ebe27d8984bf999ad171a25af726 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sun, 23 Oct 2022 20:19:06 +0800 Subject: [PATCH] Leave no apk cache in the Docker image This will make the Docker image tidier --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26b77cb..ee5805b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,11 @@ RUN npm ci && npm run tsc FROM node:16-alpine as app WORKDIR /usr/src/app -RUN apk add git postgresql-client +RUN apk add --no-cache git postgresql-client COPY --from=builder ./node_modules ./node_modules COPY --from=builder ./dist ./dist COPY ./.git ./.git COPY entrypoint.sh . COPY databases/*.sql databases/ EXPOSE 8080 -CMD ./entrypoint.sh \ No newline at end of file +CMD ./entrypoint.sh