Skip to content

Commit

Permalink
Merge pull request #54 from jnohlgard/docker-arch
Browse files Browse the repository at this point in the history
Dockerfile: Add target architecture to Docker images
  • Loading branch information
TP Honey authored Nov 15, 2022
2 parents 47ee73d + 3a32b89 commit dc1d813
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN tar -xf tmate-2.4.0-static-linux-amd64.tar.xz
RUN mv tmate-2.4.0-static-linux-amd64/tmate /bin/
RUN chmod +x /bin/tmate

FROM alpine:3
FROM --platform=linux/amd64 alpine:3
EXPOSE 3000

ENV GODEBUG netdns=go
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.arm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN tar -xf tmate-2.4.0-static-linux-arm32v7.tar.xz
RUN mv tmate-2.4.0-static-linux-arm32v7/tmate /bin/
RUN chmod +x /bin/tmate

FROM scratch
FROM --platform=linux/arm scratch
EXPOSE 3000

ENV GODEBUG netdns=go
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN tar -xf tmate-2.4.0-static-linux-arm64v8.tar.xz
RUN mv tmate-2.4.0-static-linux-arm64v8/tmate /bin/
RUN chmod +x /bin/tmate

FROM scratch
FROM --platform=linux/arm64 scratch
EXPOSE 3000

ENV GODEBUG netdns=go
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN tar -xf tmate-2.4.0-static-linux-ppc64le.tar.xz
RUN mv tmate-2.4.0-static-linux-ppc64le/tmate /bin/
RUN chmod +x /bin/tmate

FROM scratch
FROM --platform=linux/ppc64le scratch
EXPOSE 3000

ENV GODEBUG netdns=go
Expand Down

0 comments on commit dc1d813

Please sign in to comment.