git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / contrib / docker / Dockerfile
1 # Dockerfile
2 # First image to build the binary
3 FROM alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a as builder
4
5 RUN apk --no-cache add make gcc libc-dev
6 COPY . /src
7 RUN mkdir /pkg && cd /src && make && make DESTDIR=/pkg install
8
9 # Second minimal image to only keep the built binary
10 FROM alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a
11
12 # Copy the built files
13 COPY --from=builder /pkg /
14
15 # Copy the license as well
16 RUN mkdir -p /usr/local/share/licenses/zstd
17 COPY --from=builder /src/LICENSE /usr/local/share/licences/zstd/
18
19 # Just run `zstd` if no other command is given
20 CMD ["/usr/local/bin/zstd"]