Skip to content

Commit

Permalink
chore: workaround go-sqlite3 alpine3.19 issue (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnaranjo-vmw authored Dec 28, 2023
1 parent ffbab8c commit 1fafbe6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Currently can't go to 3.19 due to issue: https://github.com/mattn/go-sqlite3/issues/1164#issuecomment-1848677118
FROM golang:1.21-alpine3.18 AS build
FROM golang:1.21-alpine3.19 AS build
RUN apk update
RUN apk upgrade
RUN apk add --update gcc g++
WORKDIR /app
ADD . /app

ARG CSB_VERSION=0.0.0
RUN CGO_ENABLED=1 GOOS=linux go build -o ./build/cloud-service-broker -ldflags "-X github.com/cloudfoundry/cloud-service-broker/utils.Version=$CSB_VERSION"
RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" CGO_ENABLED=1 GOOS=linux go build -o ./build/cloud-service-broker -ldflags "-X github.com/cloudfoundry/cloud-service-broker/utils.Version=$CSB_VERSION"

# Currently can't go to 3.19 due to issue: https://github.com/mattn/go-sqlite3/issues/1164#issuecomment-1848677118
FROM alpine:3.19

COPY --from=build /app/build/cloud-service-broker /bin/cloud-service-broker
Expand Down

0 comments on commit 1fafbe6

Please sign in to comment.