mirror of
https://github.com/facebook/zstd.git
synced 2024-11-23 19:36:44 +08:00
Also Pin Dockerfile Dependency Hashes
This commit is contained in:
parent
1ec556238e
commit
cd9486031d
@ -1,4 +1,4 @@
|
|||||||
FROM circleci/buildpack-deps:focal
|
FROM circleci/buildpack-deps@sha256:f6f10c11b7b8ccfd4f4a5b830c3256803604ce61292b60cb22e26b12f62b0e8c
|
||||||
|
|
||||||
RUN sudo dpkg --add-architecture i386
|
RUN sudo dpkg --add-architecture i386
|
||||||
RUN sudo apt-get -y -qq update
|
RUN sudo apt-get -y -qq update
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# Dockerfile
|
# Dockerfile
|
||||||
# First image to build the binary
|
# First image to build the binary
|
||||||
FROM alpine as builder
|
FROM alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a as builder
|
||||||
|
|
||||||
RUN apk --no-cache add make gcc libc-dev
|
RUN apk --no-cache add make gcc libc-dev
|
||||||
COPY . /src
|
COPY . /src
|
||||||
RUN mkdir /pkg && cd /src && make && make DESTDIR=/pkg install
|
RUN mkdir /pkg && cd /src && make && make DESTDIR=/pkg install
|
||||||
|
|
||||||
# Second minimal image to only keep the built binary
|
# Second minimal image to only keep the built binary
|
||||||
FROM alpine
|
FROM alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a
|
||||||
|
|
||||||
# Copy the built files
|
# Copy the built files
|
||||||
COPY --from=builder /pkg /
|
COPY --from=builder /pkg /
|
||||||
|
Loading…
Reference in New Issue
Block a user