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
|
.PHONY: compile
|
||||||
compile: compile-bootstrap
|
compile: compile-bootstrap
|
||||||
|
|
|
@ -5,7 +5,7 @@ RUN mkdir -p /usr/src/serene
|
||||||
WORKDIR /usr/src/serene
|
WORKDIR /usr/src/serene
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download -x
|
||||||
COPY . .
|
COPY . .
|
||||||
# Build the Go app
|
# Build the Go app
|
||||||
RUN go build -v ./serene.go
|
RUN go build -v ./serene.go
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
BOOTSTRAP_TAG ?= latest
|
BOOTSTRAP_TAG ?= latest
|
||||||
|
BOOTSTRAP_DIR = $(ROOT_DIR)/bootstrap
|
||||||
|
|
||||||
compile-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:
|
clean-bootstrap:
|
||||||
docker rmi serene-lang/serene-bootstrap:$(BOOTSTRAP_TAG)
|
docker rmi serene-lang/serene-bootstrap:$(BOOTSTRAP_TAG)
|
||||||
|
|
Loading…
Reference in New Issue