-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
22 lines (15 loc) · 659 Bytes
/
Copy pathContainerfile
File metadata and controls
22 lines (15 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SPDX-License-Identifier: MPL-2.0
# Containerfile — podman-build fallback when stapeln is unavailable.
# TODO(scaffold): pin @sha256
FROM cgr.dev/chainguard/wolfi-base:latest AS build
USER root
RUN apk add --no-cache agda ghc cabal
WORKDIR /build
COPY echo-types.agda-lib ./
COPY proofs ./proofs
RUN agda -i proofs/agda proofs/agda/All.agda
FROM cgr.dev/chainguard/static:latest AS runtime
USER nonroot
COPY --from=build /build/proofs /app/proofs
COPY --from=build /build/echo-types.agda-lib /app/echo-types.agda-lib
ENTRYPOINT ["/bin/sh", "-c", "echo 'echo-types is a proof-artefact carrier; mount /app/proofs into your downstream Agda project.'"]