Skip to content

Commit

Permalink
[AWS Lambda] specify linux/amd64 platform when building a runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
JosepSampe committed Apr 2, 2024
1 parent 54ff7c3 commit 3d617c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lithops/serverless/backends/aws_lambda/aws_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ def build_runtime(self, runtime_name, runtime_file, extra_args=[]):
docker_path = utils.get_docker_path()
if runtime_file:
assert os.path.isfile(runtime_file), f'Cannot locate "{runtime_file}"'
cmd = f'{docker_path} build -t {runtime_name} -f {runtime_file} . '
cmd = f'{docker_path} build --platform=linux/amd64 -t {runtime_name} -f {runtime_file} . '
else:
cmd = f'{docker_path} build -t {runtime_name} . '
cmd = f'{docker_path} build --platform=linux/amd64 -t {runtime_name} . '
cmd = cmd + ' '.join(extra_args)

try:
Expand Down

0 comments on commit 3d617c0

Please sign in to comment.