Skip to content

Commit

Permalink
files
Browse files Browse the repository at this point in the history
  • Loading branch information
olegdayo committed Dec 1, 2024
1 parent 7b7385b commit 1dd2423
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion code/back/gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ RUN go build -ldflags "-s -w" -o ./bin/gateway ./code/back/gateway/cmd

FROM alpine:latest AS runner
WORKDIR /app
CMD ["./bin/gateway"]
COPY --from=builder /app/bin/gateway .
CMD ["./gateway"]
3 changes: 2 additions & 1 deletion code/back/integrator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ RUN go build -ldflags "-s -w" -o ./bin/integrator ./code/back/integrator/cmd

FROM alpine:latest AS runner
WORKDIR /app
CMD ["./bin/integrator"]
COPY --from=builder /app/bin/gateway .
CMD ["./integrator"]
4 changes: 2 additions & 2 deletions code/back/validator/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use actix_web::{get, App, HttpResponse, HttpServer, Responder, Error};

#[get("/")]
#[get("/ping")]
async fn index() -> Result<impl Responder, Error> {
Ok(HttpResponse::Ok().body("Hello, world!"))
Ok(HttpResponse::Ok().body("pong"))
}

#[actix_web::main]
Expand Down

0 comments on commit 1dd2423

Please sign in to comment.