Skip to content

Commit 27829e1

Browse files
committed
chore: init boilerplate code for user, question, match, and collab services
1 parent b242399 commit 27829e1

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

services/match/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# syntax=docker/dockerfile:1
21
FROM golang:1.22 AS build
32
WORKDIR /app
43

5-
# pull what's in go.mod (fast cacheable layer)
64
COPY go.mod ./
75
RUN go mod download
86

9-
# now bring in code and resolve any new imports (adds go.sum entries)
107
COPY . .
118
RUN go mod tidy
129

13-
# build
1410
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/app ./cmd/server
1511

1612
FROM gcr.io/distroless/base-debian12
@@ -19,4 +15,4 @@ COPY --from=build /out/app /app
1915
USER 65532:65532
2016
ENV PORT=8080
2117
EXPOSE 8080
22-
ENTRYPOINT ["/app"]
18+
ENTRYPOINT ["/app"]

services/question/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# syntax=docker/dockerfile:1
21
FROM golang:1.22 AS build
32
WORKDIR /app
43

5-
# pull what's in go.mod (fast cacheable layer)
64
COPY go.mod ./
75
RUN go mod download
86

9-
# now bring in code and resolve any new imports (adds go.sum entries)
107
COPY . .
118
RUN go mod tidy
129

13-
# build
1410
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/app ./cmd/server
1511

1612
FROM gcr.io/distroless/base-debian12
@@ -19,4 +15,4 @@ COPY --from=build /out/app /app
1915
USER 65532:65532
2016
ENV PORT=8080
2117
EXPOSE 8080
22-
ENTRYPOINT ["/app"]
18+
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)