Add Makefile target to build only amd64 Docker image
This commit is contained in:
parent
7b995044b4
commit
bacab20f4a
2 changed files with 10 additions and 1 deletions
|
@ -5,7 +5,7 @@ RUN apk add --no-cache --update build-base git
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN make linux-__MINIFLUX_ARCH__ VERSION=__MINIFLUX_VERSION__
|
RUN make linux-__MINIFLUX_ARCH__ VERSION=__MINIFLUX_VERSION__
|
||||||
|
|
||||||
FROM __BASEIMAGE_ARCH__/alpine:3.10.1
|
FROM __BASEIMAGE_ARCH__/alpine:3.10.3
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENV LISTEN_ADDR 0.0.0.0:8080
|
ENV LISTEN_ADDR 0.0.0.0:8080
|
||||||
RUN apk --no-cache add ca-certificates tzdata
|
RUN apk --no-cache add ca-certificates tzdata
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -33,6 +33,7 @@ export GO111MODULE=on
|
||||||
lint \
|
lint \
|
||||||
integration-test \
|
integration-test \
|
||||||
clean-integration-test \
|
clean-integration-test \
|
||||||
|
docker-image \
|
||||||
docker-images \
|
docker-images \
|
||||||
docker-manifest
|
docker-manifest
|
||||||
|
|
||||||
|
@ -118,6 +119,14 @@ clean-integration-test:
|
||||||
@ rm miniflux-test
|
@ rm miniflux-test
|
||||||
@ psql -U postgres -c 'drop database if exists miniflux_test;'
|
@ psql -U postgres -c 'drop database if exists miniflux_test;'
|
||||||
|
|
||||||
|
docker-image:
|
||||||
|
cp Dockerfile Dockerfile.amd64
|
||||||
|
sed -i.bak "s/__BASEIMAGE_ARCH__/amd64/" Dockerfile.amd64
|
||||||
|
sed -i.bak "s/__MINIFLUX_VERSION__/$(VERSION)/" Dockerfile.amd64
|
||||||
|
sed -i.bak "s/__MINIFLUX_ARCH__/amd64/" Dockerfile.amd64
|
||||||
|
docker build --pull -f Dockerfile.amd64 -t $(DOCKER_IMAGE):$(VERSION) .
|
||||||
|
rm -f Dockerfile.amd64*
|
||||||
|
|
||||||
docker-images:
|
docker-images:
|
||||||
for arch in amd64 arm32v6 arm32v7 arm64v8; do \
|
for arch in amd64 arm32v6 arm32v7 arm64v8; do \
|
||||||
case $${arch} in \
|
case $${arch} in \
|
||||||
|
|
Loading…
Reference in a new issue