From d0915986a6ec70a39fa76f9eb4d17f3441466956 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Mon, 26 Feb 2024 14:26:24 +0100 Subject: [PATCH] init go dockerfiles --- auth-service/dockerfile | 8 ++++++++ backend/dockerfile | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 auth-service/dockerfile create mode 100644 backend/dockerfile diff --git a/auth-service/dockerfile b/auth-service/dockerfile new file mode 100644 index 0000000..04269bc --- /dev/null +++ b/auth-service/dockerfile @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..9129fa3 --- /dev/null +++ b/backend/dockerfile @@ -0,0 +1,8 @@ +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