diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8a07093..0000000 --- a/Dockerfile +++ /dev/null @@ -1,29 +0,0 @@ -ARG GO_VERSION=1.22 - -FROM golang:${GO_VERSION} AS builder - -WORKDIR /src - -COPY ./go.mod /src/ -COPY ./go.sum /src/ - -RUN go mod download && go mod verify - -COPY . /src/ - -RUN CGO_ENABLED=0 \ - go build -o rogueserver - -RUN chmod +x /src/rogueserver - -# --------------------------------------------- - -FROM scratch - -WORKDIR /app - -COPY --from=builder /src/rogueserver . - -EXPOSE 8001 - -ENTRYPOINT ["./rogueserver"] diff --git a/dockerfile b/dockerfile deleted file mode 100644 index 1e97627..0000000 --- a/dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM golang:1.22 - -WORKDIR /app - -COPY go.mod go.sum ./ - -RUN go mod download - -COPY . ./ - -RUN CGO_ENABLED=0 GOOS=linux go build -o /docker-gs-ping - -EXPOSE 8001 - -CMD ["/docker-gs-ping"] \ No newline at end of file