Skip to content

Commit 0fd2ce9

Browse files
committed
add multiarch
Signed-off-by: Kirill Mokevnin <mokevnin@gmail.com>
1 parent bc1f24e commit 0fd2ce9

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

Makefile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ compose-down:
3636
docker compose down -v --remove-orphans
3737

3838
docker-push:
39-
docker compose -f docker-compose.yml build
40-
docker compose -f docker-compose.yml push app
39+
docker buildx build --platform linux/amd64,linux/arm64 -t hexletcomponents/devops-example-app --push .
4140

4241
setup: env-prepare install
4342

@@ -67,15 +66,3 @@ ssh:
6766

6867
# Для запуска x86-образа на ARM (например, Mac M1/M2):
6968
# docker run --platform linux/amd64 -p 3000:3000 -e SERVER_MESSAGE="Hexlet Awesome Server" hexletcomponents/devops-example-app
70-
71-
multiarch-build-app:
72-
docker buildx build --platform linux/amd64,linux/arm64 -t hexletcomponents/devops-example-app .
73-
74-
multiarch-build-caddy:
75-
docker buildx build --platform linux/amd64,linux/arm64 -t hexletcomponents/devops-example-caddy -f services/caddy/Dockerfile .
76-
77-
multiarch-push-app:
78-
docker buildx build --platform linux/amd64,linux/arm64 -t hexletcomponents/devops-example-app --push .
79-
80-
multiarch-push-caddy:
81-
docker buildx build --platform linux/amd64,linux/arm64 -t hexletcomponents/devops-example-caddy -f services/caddy/Dockerfile --push .

0 commit comments

Comments
 (0)