-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
30 lines (27 loc) · 818 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
IMAGE_NAME=simaofsilva/noip-renewer
PYTHON_VERSION=3.10.0
ALPINE_VERSION=3.14
SELENIUM_VERSION=4.0.0
build: build-32 build-64
build-32:
DOCKER_CLI_EXPERIMENTAL=enabled \
docker buildx build \
--build-arg "PYTHON_VERSION=${PYTHON_VERSION}" \
--push \
--platform=linux/i386,linux/arm/v7,linux/amd64,linux/arm64/v8 \
--tag ${IMAGE_NAME}:${PYTHON_VERSION}-slim \
--tag ${IMAGE_NAME}:slim \
--file Dockerfile.32bits \
.
build-64:
DOCKER_CLI_EXPERIMENTAL=enabled \
docker buildx build \
--build-arg "PYTHON_VERSION=${PYTHON_VERSION}" \
--build-arg "ALPINE_VERSION=${ALPINE_VERSION}" \
--build-arg "SELENIUM_VERSION=${SELENIUM_VERSION}" \
--push \
--platform=linux/amd64,linux/arm64/v8 \
--tag ${IMAGE_NAME}:${PYTHON_VERSION}-alpine \
--tag ${IMAGE_NAME}:latest \
--file Dockerfile \
.