Skip to content

Commit

Permalink
fix: try to fix docker build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Feb 1, 2025
1 parent 57f9f7d commit 9af5a1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat /web/default/VERSION) n
DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat /web/air/VERSION) npm run build --prefix /web/air & \
wait

FROM golang AS builder2
FROM golang:alpine AS builder2

RUN apk add --no-cache g++ gcc musl-dev libc-dev sqlite-dev build-base

ENV GO111MODULE=on \
CGO_ENABLED=1 \
GOOS=linux
GOOS=linux \
CGO_CFLAGS="-I/usr/include" \
CGO_LDFLAGS="-L/usr/lib"

WORKDIR /build
ADD go.mod go.sum ./
Expand Down

0 comments on commit 9af5a1d

Please sign in to comment.