diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 680570d..a7dac3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,3 @@ jobs: - name: Run tests run: | go test ./... - - - name: Build Docker image - run: | - docker build -t rentease . \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 39c2655..0000000 --- a/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM golang:1.22-alpine AS builder - -RUN apk add --no-cache \ - git \ - build-base - -WORKDIR /app - -COPY go.mod go.sum ./ -RUN go mod download -COPY . . - -RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /app/dist/rentease main.go - -FROM scratch - -COPY --from=builder /app/dist/rentease /app/dist/rentease - -WORKDIR /app - -EXPOSE 8000 - -ENTRYPOINT ["/app/dist/rentease"] \ No newline at end of file