Skip to content

Commit

Permalink
Build for the right architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
mpugach committed Feb 28, 2023
1 parent 3e2b87d commit 37e4d6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions bin/build_postgres.sh
@@ -0,0 +1,6 @@
#!/usr/bin/env sh

set -e

# docker buildx append --name multiarch --driver docker-container
docker buildx build --platform linux/amd64,linux/arm64 -t mpugach/postgres_ua:9.5 --push docker/postgres_ua
1 change: 0 additions & 1 deletion docker-compose.yml
Expand Up @@ -25,7 +25,6 @@ services:
context: '.'
dockerfile: docker/akadem_students/Dockerfile
target: development
platform: 'linux/amd64'
ports:
- 3000:3000
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker/akadem_students/Dockerfile
@@ -1,4 +1,4 @@
FROM ruby:2.4.9-slim-buster as base
FROM --platform=linux/amd64 ruby:2.4.9-slim-buster as base

LABEL maintainer="Maksym Pugach <pugach.m@gmail.com>"

Expand Down

0 comments on commit 37e4d6e

Please sign in to comment.