Skip to content

Commit c5c6026

Browse files
committed
chore(docker): Change base image to alpine, set workdir to /data
1 parent 8ed7383 commit c5c6026

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ echo hello world | docker run --rm -i ghcr.io/gabe565/moreutils ts
138138
If you are building a container and need one of the applets, you can copy them directly to your container during build:
139139
```dockerfile
140140
FROM alpine
141-
COPY --from=ghcr.io/gabe565/moreutils:0 /ts /usr/bin
141+
COPY --from=ghcr.io/gabe565/moreutils:0 /usr/bin/ts /usr/bin
142142
CMD echo hello world | ts
143143
```
144144

goreleaser.Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ WORKDIR /app
33
COPY moreutils .
44
RUN ./moreutils install .
55

6-
FROM scratch
6+
FROM alpine
7+
WORKDIR /data
78
LABEL org.opencontainers.image.source="https://github.com/gabe565/moreutils"
8-
COPY --from=source /app /
9-
ENTRYPOINT ["/moreutils"]
9+
COPY --from=source /app /usr/bin
10+
ENTRYPOINT ["moreutils"]

0 commit comments

Comments
 (0)