Skip to content

Commit

Permalink
Dockerfile: use /aws as working directory (peak#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
LadMartin authored Apr 8, 2022
1 parent df6b29f commit d4aa0cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ RUN apk add --no-cache git make && \

FROM alpine:3.15
COPY --from=build /s5cmd/s5cmd .
ENTRYPOINT ["./s5cmd"]
WORKDIR /aws
ENTRYPOINT ["/s5cmd"]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ development happens on `master` branch.
$ docker pull peakcom/s5cmd
$ docker run --rm -v ~/.aws:/root/.aws peakcom/s5cmd <S3 operation>

ℹ️ For accesing host filesystem add `-v $(pwd):/aws` to `docker run` flags. Container uses `/aws/` as default working directory.

⚠️ Note that only relative paths are allowed and only to files in `$(pwd)` and its subdirectories. Otherwise, the files won't be accessible in the container in the same way.

#### Build
$ git clone https://github.com/peak/s5cmd && cd s5cmd
$ docker build -t s5cmd .
Expand Down

0 comments on commit d4aa0cf

Please sign in to comment.