Fix the build script to compile the bootstrap in a container
This commit is contained in:
parent
8546c1c562
commit
d154f32079
4
Makefile
4
Makefile
|
@ -1,6 +1,6 @@
|
|||
THIS_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||
ROOT_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||
|
||||
include $(THIS_DIR)/bootstrap/Makefile
|
||||
include $(ROOT_DIR)/bootstrap/Makefile
|
||||
|
||||
.PHONY: compile
|
||||
compile: compile-bootstrap
|
||||
|
|
|
@ -5,7 +5,7 @@ RUN mkdir -p /usr/src/serene
|
|||
WORKDIR /usr/src/serene
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
RUN go mod download -x
|
||||
COPY . .
|
||||
# Build the Go app
|
||||
RUN go build -v ./serene.go
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
BOOTSTRAP_TAG ?= latest
|
||||
BOOTSTRAP_DIR = $(ROOT_DIR)/bootstrap
|
||||
|
||||
compile-bootstrap:
|
||||
docker build -t serene-lang/serene-bootstrap:$(BOOTSTRAP_TAG) .
|
||||
echo ">>>>>>>>>>> $(BOOTSTRAP_DIR)"
|
||||
docker build -t serene-lang/serene-bootstrap:$(BOOTSTRAP_TAG) $(BOOTSTRAP_DIR)
|
||||
|
||||
clean-bootstrap:
|
||||
docker rmi serene-lang/serene-bootstrap:$(BOOTSTRAP_TAG)
|
||||
|
|
Loading…
Reference in New Issue