-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "validator" | ||
name = "pingus" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM rust:latest AS builder | ||
WORKDIR /app | ||
COPY . . | ||
RUN apt update && apt install musl-tools -y | ||
RUN rustup target add x86_64-unknown-linux-musl | ||
RUN cargo build --release --target x86_64-unknown-linux-musl | ||
|
||
FROM --platform=linux/amd64 alpine:latest AS runner | ||
Check warning on line 8 in code/back/pingus/Dockerfile
|
||
WORKDIR /app | ||
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/pingus . | ||
CMD ["./pingus"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
FROM rust:latest AS builder | ||
FROM golang:alpine AS builder | ||
WORKDIR /app | ||
COPY . . | ||
RUN apt update && apt install musl-tools -y | ||
RUN rustup target add x86_64-unknown-linux-musl | ||
RUN cargo build --release --target x86_64-unknown-linux-musl | ||
RUN apk add --no-cache make | ||
RUN go build -ldflags "-s -w" -o ./bin/integrator ./cmd | ||
|
||
FROM --platform=linux/amd64 alpine:latest AS runner | ||
FROM alpine:latest AS runner | ||
WORKDIR /app | ||
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/validator . | ||
CMD ["./validator"] | ||
COPY --from=builder /app/bin/integrator . | ||
CMD ["./integrator"] |