Skip to content

Commit 55a69e5

Browse files
build app for x86
1 parent 884d215 commit 55a69e5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ RUN apt-get update && apt-get install -y \
1212
git \
1313
&& rm -rf /var/lib/apt/lists/*
1414

15-
# Install Go for ARM architecture (latest supported version 1.21)
16-
RUN curl -OL https://golang.org/dl/go1.21.1.linux-arm64.tar.gz && \
17-
tar -C /usr/local -xzf go1.21.1.linux-arm64.tar.gz && \
18-
rm go1.21.1.linux-arm64.tar.gz
15+
# Install Go for x86 architecture (latest supported version 1.21)
16+
RUN curl -OL https://golang.org/dl/go1.21.1.linux-amd64.tar.gz && \
17+
tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz && \
18+
rm go1.21.1.linux-amd64.tar.gz
1919

2020
# Set Go environment variables
2121
ENV PATH="/usr/local/go/bin:${PATH}"

compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
restart: always
44
domainname: ask.defang.io
55
x-defang-dns-role: arn:aws:iam::258338292852:role/dnsadmin-39a19c3
6+
platform: linux/amd64
67
build:
78
context: ./app
89
shm_size: "30gb"

0 commit comments

Comments
 (0)