diff --git a/Dockerfile b/Dockerfile index 7c74ad0..7e13b20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM node:18.15.0 +FROM ubuntu:20.04 EXPOSE 3999 EXPOSE 3010 EXPOSE 3011 WORKDIR /works/jc/r2/game-server -RUN apt-get update && apt-get install -y sysstat +RUN apt-get update && apt-get install -y sysstat curl +RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - +RUN apt-get install -y nodejs RUN mkdir -p /works/jc/r2 COPY . /works/jc/r2 RUN npm install diff --git a/deployment.yaml b/deployment.yaml index 6b744a7..ef45dd9 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -13,11 +13,11 @@ spec: spec: containers: - name: r2server - image: r2server:v1 + image: localhost:5550/r2server:v1 imagePullPolicy: IfNotPresent resources: limits: - memory: "128Mi" + memory: "256Mi" cpu: "500m" ports: - containerPort: 3999