diff --git a/.github/workflows/build_and_push_auth_docker_img.yml b/.github/workflows/auth-service-cd.yml similarity index 100% rename from .github/workflows/build_and_push_auth_docker_img.yml rename to .github/workflows/auth-service-cd.yml diff --git a/.github/workflows/build_and_push_backend_docker_img.yml b/.github/workflows/backend-cd.yml similarity index 100% rename from .github/workflows/build_and_push_backend_docker_img.yml rename to .github/workflows/backend-cd.yml diff --git a/auth-service/dockerfile b/auth-service/dockerfile index 04269bc..543234a 100644 --- a/auth-service/dockerfile +++ b/auth-service/dockerfile @@ -1,8 +1,12 @@ FROM golang:1.22-alpine as build + WORKDIR /app COPY . . + RUN go build -o auth-service FROM busybox + COPY --from=build /app/auth-service /app/ + CMD [ "/app/auth-service" ] \ No newline at end of file diff --git a/backend/dockerfile b/backend/dockerfile index 9129fa3..a3dea18 100644 --- a/backend/dockerfile +++ b/backend/dockerfile @@ -1,8 +1,12 @@ FROM golang:1.22-alpine as build + WORKDIR /app COPY . . + RUN go build -o backend FROM busybox + COPY --from=build /app/backend /app/ + CMD [ "/app/backend" ] \ No newline at end of file