Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions go-memory-load-grpc/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Build artifacts
/bin/
*.exe

# Go module cache
/vendor/

# IDE
.idea/
.vscode/
*.swp
*.swo

# OS
.DS_Store
Thumbs.db

# Test output
coverage.out
5 changes: 5 additions & 0 deletions go-memory-load-grpc/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# HTTP port for the health-check endpoint
APP_HTTP_PORT=8080

# gRPC port for the LoadTestService
APP_GRPC_PORT=50051
19 changes: 19 additions & 0 deletions go-memory-load-grpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.26-alpine AS build

WORKDIR /app

COPY go.mod go.sum* ./
RUN go mod download

COPY . .
RUN go build -o /bin/api ./cmd/api

FROM alpine:3.22

WORKDIR /app
COPY --from=build /bin/api /app/api

EXPOSE 8080
EXPOSE 50051

CMD ["/app/api"]
Loading
Loading