diff --git a/.build/Dockerfile b/.build/Dockerfile index 257f8db..616b0ee 100644 --- a/.build/Dockerfile +++ b/.build/Dockerfile @@ -3,12 +3,12 @@ WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN go build -o tower ./cmd/tower +RUN go build -o beacon ./cmd/beacon FROM alpine:3.19 RUN apk add --no-cache ca-certificates tzdata postgresql-client WORKDIR /app -COPY --from=builder /app/tower . +COPY --from=builder /app/beacon . COPY db/migrations/ ./migrations/ COPY .build/docker-entrypoint.sh . RUN chmod +x docker-entrypoint.sh diff --git a/.build/docker-entrypoint.sh b/.build/docker-entrypoint.sh index 0f7573f..b7f58ab 100644 --- a/.build/docker-entrypoint.sh +++ b/.build/docker-entrypoint.sh @@ -24,4 +24,4 @@ if [ -n "$POSTGRES_DSN" ]; then echo "Migrations complete." fi -exec ./tower "$@" +exec ./beacon "$@"