Skip to content

Commit

Permalink
Pin image to a concrete SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jun 25, 2024
1 parent 2ffd6a8 commit feb7137
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
13 changes: 9 additions & 4 deletions Dockerfile.bindings
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:jammy
FROM ubuntu@sha256:19478ce7fc2ffbce89df29fea5725a8d12e57de52eb9ea570890dc5852aac1ac

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -q && apt-get install -y git curl xz-utils tar gpg build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev \
libncursesw5-dev tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
Expand Down Expand Up @@ -30,11 +31,15 @@ RUN asdf plugin add nodejs && \

COPY .tool-versions .

# We run binding regeneration in ephemeral location
# to make sure all dependencies are pre-downloaded
RUN asdf install && cabal install proto-lens-protoc-0.8.0.1 ghc-source-gen-0.4.5.0
RUN asdf install && \
# Pre-fetch Haskell dependencies as they take the longest time by far
# TODO(anton): run the proto-generate.sh script during the build time to
# pre-fecth all dependencies. I attempted to do so but ran into issues
# with Yarn
cabal install proto-lens-protoc-0.8.0.1 ghc-source-gen-0.4.5.0

WORKDIR /src

ENTRYPOINT ["./dev/proto-generate.sh"]


0 comments on commit feb7137

Please sign in to comment.