forked from mozilla-services/cjms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (21 loc) · 813 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM rust:1.57 as build
WORKDIR /app
COPY . /app
ARG CI
ARG GITHUB_SHA
ARG GITHUB_REF_NAME
RUN cargo build --release
RUN ./target/release/make_version_file
RUN cat version.yaml
# Note: If you need to debug this image add ":debug" to the end of the next line
# https://github.com/GoogleContainerTools/distroless/blob/main/README.md#debug-images
FROM gcr.io/distroless/cc
COPY --from=build /app/target/release/web /
COPY --from=build /app/target/release/batch_refunds /
COPY --from=build /app/target/release/check_subscriptions /
COPY --from=build /app/target/release/check_refunds /
COPY --from=build /app/target/release/cleanup /
COPY --from=build /app/target/release/report_subscriptions /
COPY --from=build /app/target/release/verify_reports /verify_reports
COPY --from=build /app/version.yaml /
CMD ["./web"]