Skip to content

Commit

Permalink
Update testrp and magpie Dockerfiles (#7745)
Browse files Browse the repository at this point in the history
# Description
Update testrp and magpie Dockerfiles

## Type of change
- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
Fixes: #7743

Signed-off-by: ytimocin <[email protected]>
  • Loading branch information
ytimocin authored Jul 19, 2024
1 parent 2a4effe commit 53e19b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/magpiego/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Issues on M1 mac: https://github.com/docker/for-mac/issues/5831
# it is a multistage docker creation for small magpie image
FROM amd64/golang:1.22-alpine
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.22-alpine
WORKDIR /usr/src/tmpapp

# Download necessary Go modules
Expand All @@ -12,7 +12,7 @@ COPY *.go ./
# create the go binary
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o magpiego .

FROM amd64/alpine:3
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3
WORKDIR /usr/src/app
COPY --from=0 /usr/src/tmpapp/magpiego ./
EXPOSE 3000
Expand Down
4 changes: 2 additions & 2 deletions test/testrp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Issues on M1 mac: https://github.com/docker/for-mac/issues/5831
# it is a multistage docker creation for small magpie image
FROM amd64/golang:1.22-alpine
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.22-alpine
WORKDIR /usr/src/tmpapp

# Download necessary Go modules
Expand All @@ -10,7 +10,7 @@ COPY *.go ./
# create the go binary
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o testrp .

FROM amd64/alpine:3
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3
WORKDIR /usr/src/app
COPY --from=0 /usr/src/tmpapp/testrp ./
EXPOSE 3000
Expand Down

0 comments on commit 53e19b2

Please sign in to comment.