Skip to content

Commit

Permalink
fix: improve dockerfile caching
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 authored and aymanbagabas committed May 11, 2023
1 parent 882abd5 commit 2a97f93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 2a97f93

Please sign in to comment.