diff --git a/.gitignore b/.gitignore index e1c399c8ae..c87678602a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,9 @@ ui/core/index.ts ui/*/index.html .dirstamp +# nodejs version +.nvmrc + # IDE folders .idea .history @@ -35,3 +38,5 @@ tmp/ wowsimwotlk*.so wowsimwotlk*.dll wowsimwotlk*.h + + diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 67bfd2c530..0000000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -19.8.0 diff --git a/Dockerfile b/Dockerfile index d512eef261..58884c52ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,21 +3,24 @@ FROM golang:1.21 WORKDIR /wotlk -COPY . . -COPY gitconfig /etc/gitconfig -RUN apt-get update -RUN apt-get install -y protobuf-compiler -RUN go get -u google.golang.org/protobuf -RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest +ENV NODE_VERSION=19.8.0 +ENV NVM_DIR="/root/.nvm" + +RUN apt-get update && \ + apt-get install -y protobuf-compiler +COPY go.mod go.sum ./ +RUN go get -u google.golang.org/protobuf && go install google.golang.org/protobuf/cmd/protoc-gen-go@latest RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash +RUN . "$NVM_DIR/nvm.sh" && \ + nvm install ${NODE_VERSION} && \ + nvm use v${NODE_VERSION} && \ + nvm alias default v${NODE_VERSION} -ENV NODE_VERSION=19.8.0 -ENV NVM_DIR="/root/.nvm" -RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} -RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} -RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" +COPY gitconfig /etc/gitconfig +COPY . . + EXPOSE 8080/tcp