From 0ea959f7caa08a863547cd5a0b6057782ed6068b Mon Sep 17 00:00:00 2001 From: lightings <17062401@qq.com> Date: Wed, 5 Apr 2023 18:50:47 +0800 Subject: [PATCH] ... --- Dockerfile | 6 ++++-- deployment.yaml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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