Dockerfile.teal 856 B

123456789101112131415161718192021
  1. # syntax=docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
  2. FROM docker.io/fedora:34 AS teal-build
  3. RUN dnf -y install python3-pip
  4. COPY staging/algorand/teal /teal
  5. # Install pyTEAL dependencies
  6. COPY third_party/algorand/Pipfile.lock Pipfile.lock
  7. COPY third_party/algorand/Pipfile Pipfile
  8. RUN pip install pipenv
  9. RUN pipenv install
  10. # Regenerate TEAL assembly
  11. RUN pipenv run python3 /teal/wormhole/pyteal/vaa-processor.py vaa-processor-approval.teal vaa-processor-clear.teal
  12. RUN pipenv run python3 /teal/wormhole/pyteal/vaa-verify.py 0 vaa-verify.teal
  13. FROM scratch AS teal-export
  14. COPY --from=teal-build /vaa-processor-approval.teal third_party/algorand/teal/
  15. COPY --from=teal-build /vaa-processor-clear.teal third_party/algorand/teal/
  16. COPY --from=teal-build /vaa-verify.teal third_party/algorand/teal/