Skip to content
Draft
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
3 changes: 2 additions & 1 deletion deploy/railway/Dockerfile.analysis-worker
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.25-alpine AS builder
WORKDIR /build
COPY services/realtime/ .
RUN go vet ./cmd/analysis-worker/... && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /build/analysis-worker ./cmd/analysis-worker/
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags pgx5driver -ldflags="-s -w" -o /build/analysis-worker ./cmd/analysis-worker/

FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata stockfish
Expand All @@ -15,3 +15,4 @@ USER chess404
ENV STOCKFISH_PATH=/usr/bin/stockfish

CMD ["./analysis-worker"]

3 changes: 2 additions & 1 deletion deploy/railway/Dockerfile.migrate
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.25-alpine AS builder
WORKDIR /build
COPY services/realtime/ .
RUN go vet ./cmd/migrate/... && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /build/migrate ./cmd/migrate/
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags pgx5driver -ldflags="-s -w" -o /build/migrate ./cmd/migrate/

FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
Expand All @@ -11,3 +11,4 @@ COPY --from=builder /build/migrate .
RUN adduser -D -g '' -u 1001 chess404
USER chess404
CMD ["./migrate"]

3 changes: 2 additions & 1 deletion deploy/railway/gateway.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go mod download -x
COPY services/realtime ./

RUN go vet ./cmd/gateway/... && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/gateway ./cmd/gateway
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags pgx5driver -ldflags="-s -w" -o /out/gateway ./cmd/gateway

FROM alpine:3.20

Expand All @@ -25,3 +25,4 @@ HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:8080/readyz || exit 1

CMD ["/usr/local/bin/gateway"]

3 changes: 2 additions & 1 deletion deploy/railway/match-service.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go mod download -x
COPY services/realtime ./

RUN go vet ./cmd/match-service/... && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/match-service ./cmd/match-service
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags pgx5driver -ldflags="-s -w" -o /out/match-service ./cmd/match-service

FROM alpine:3.20

Expand All @@ -25,3 +25,4 @@ HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:8080/readyz || exit 1

CMD ["/usr/local/bin/match-service"]

3 changes: 2 additions & 1 deletion deploy/railway/matchmaking-service.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go mod download -x
COPY services/realtime ./

RUN go vet ./cmd/matchmaking-service/... && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/matchmaking-service ./cmd/matchmaking-service
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags pgx5driver -ldflags="-s -w" -o /out/matchmaking-service ./cmd/matchmaking-service

FROM alpine:3.20

Expand All @@ -25,3 +25,4 @@ HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:8080/readyz || exit 1

CMD ["/usr/local/bin/matchmaking-service"]

3 changes: 2 additions & 1 deletion deploy/railway/platform-service.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go mod download -x
COPY services/realtime ./

RUN go vet ./cmd/platform-service/... && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/platform-service ./cmd/platform-service
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags pgx5driver -ldflags="-s -w" -o /out/platform-service ./cmd/platform-service

FROM alpine:3.20

Expand All @@ -25,3 +25,4 @@ HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:8080/readyz || exit 1

CMD ["/usr/local/bin/platform-service"]

Loading