Skip to content

Commit

Permalink
Fix: Force deployment script to always use amd64 architecture.
Browse files Browse the repository at this point in the history
  • Loading branch information
nesitor committed Apr 10, 2024
1 parent 390622d commit d8e09a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm
FROM --platform=linux/amd64 debian:bookworm

RUN apt-get update && apt-get -y upgrade && apt-get install -y \
git \
Expand All @@ -13,4 +13,5 @@ COPY . .

RUN mkdir /opt/packages
RUN pip install -t /opt/packages .

ENV PYTHONPATH=/opt/packages
4 changes: 2 additions & 2 deletions deploy-with-docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docker build -t aleph-vrf .
docker run --rm -ti -v "$(pwd)":/usr/src/aleph_vrf -v "$(echo $HOME/.aleph-im/private-keys/)":/root/.aleph-im/private-keys/ -e PYTHONPATH=/opt/packages aleph-vrf python3 ./deployment/deploy_vrf_vms.py
docker build --platform=linux/amd64 -t aleph-vrf .
docker run --rm -ti -v "$(pwd)":/usr/src/aleph_vrf -v "$(echo $HOME/.aleph-im/private-keys/)":/root/.aleph-im/private-keys/ --platform linux/amd64 aleph-vrf python3 ./deployment/deploy_vrf_vms.py


0 comments on commit d8e09a6

Please sign in to comment.