This commit is contained in:
lightings 2023-04-05 18:50:47 +08:00
parent 966e343c92
commit 0ea959f7ca
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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