Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.43k stars 381 forks source link

docker build failure guided by the docs #2792

Closed DGGua closed 2 years ago

DGGua commented 2 years ago

Reproduction steps (if applicable)?

Use the example code mentioned in the docs

# Building the image
docker build -t tshock:linux-x64 --build-arg TARGETPLATFORM=linux-x64 .

Any stack traces or error messages (if known)?

image

Any screenshots?

above

Any log messages from files that end in .log or .txt? What are the last 100 log messages from the server console?

ubuntu@VM-24-3-ubuntu:~/Terraria/TShock-5.0.0$ docker build -t tshock:linux-x64 --build-arg TARGETPLATFORM=linux-x64 .
Sending build context to Docker daemon  5.669MB
Step 1/15 : ARG TARGETPLATFORM=linux/amd64
Step 2/15 : ARG BUILDPLATFORM=${TARGETPLATFORM}
Step 3/15 : FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:6.0 AS builder
failed to parse platform linux-x64: "linux-x64": unknown operating system or architecture: invalid argument

What plugins and what versions of those plugins are you running?

If I didn't provide any logs this issue, please close my issue immediately. I'm sorry for the inconvenience.

DGGua commented 2 years ago

I found it's because of the change of the Dockerfile, I'll create a PR later