From 2a97f93e304bfbd24e7b2890cebb9852b0e7b326 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 11 May 2023 01:07:02 +0000 Subject: [PATCH] fix: improve dockerfile caching --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85d4f8888..db9a8e640 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,5 @@ FROM alpine:latest -RUN apk update && apk add --update git bash openssh && rm -rf /var/cache/apk/* - -COPY soft /usr/local/bin/soft - # Create directories WORKDIR /soft-serve # Expose data volume @@ -25,3 +21,7 @@ EXPOSE 9418/tcp # Set the default command ENTRYPOINT [ "/usr/local/bin/soft", "serve" ] + +RUN apk update && apk add --update git bash openssh && rm -rf /var/cache/apk/* + +COPY soft /usr/local/bin/soft