Skip to content

Commit

Permalink
fix: Docker build :|
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrey Bana committed Dec 3, 2024
1 parent eb313bd commit 6c46749
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ RUN cargo build --release

FROM debian:bookworm-slim as runtime

Check warning on line 42 in example.Dockerfile

View workflow job for this annotation

GitHub Actions / docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

RUN mkdir -p /app/crates/superposition
COPY --from=builder /build/crates/superposition/Superposition.cac.toml /app/crates/superposition/Superposition.cac.toml
ENV NODE_VERSION=20.17.0
WORKDIR /app

Expand Down Expand Up @@ -76,5 +78,5 @@ COPY --from=builder /build/Cargo.toml /app/Cargo.toml
COPY --from=builder /build/target/site /app/target/site
COPY --from=builder /build/target/node_modules /app/target/node_modules
COPY --from=builder /build/target/.env /app/.env
COPY --from=builder /build/target/saml-idp-metadata.xml /app/saml-idp-metadata.xml
COPY --from=builder /build/saml-idp-meta.xml /app/saml-idp-meta.xml
CMD ["./superposition_demo.sh"]

0 comments on commit 6c46749

Please sign in to comment.