mirror of
https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git
synced 2024-12-12 23:26:27 +00:00
feat: add dockerfile
This commit is contained in:
parent
c7c006bd3d
commit
0cd9b4c5da
@ -1,9 +1,3 @@
|
||||
ALTER TABLE
|
||||
`problems`
|
||||
ADD
|
||||
`type` varchar(20) NOT NULL DEFAULT 'local';
|
||||
|
||||
ALTER TABLE
|
||||
`problems`
|
||||
ADD
|
||||
KEY `type` (`type`);
|
||||
ALTER TABLE `problems` ADD `type` varchar(20) NOT NULL DEFAULT 'local';
|
||||
ALTER TABLE `problems` ADD KEY `type` (`type`);
|
||||
insert into judger_info (judger_name, password) values ('luogu_remote_judger', '_judger_password_');
|
||||
|
11
luogu_remote_judger/Dockerfile
Normal file
11
luogu_remote_judger/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM node:18.15.0
|
||||
|
||||
WORKDIR /opt/s2oj_remote_judger
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV LANG=C.UTF-8 TZ="Asia/Shanghai"
|
||||
CMD [ "node", "dist/entrypoint.js" ]
|
Loading…
Reference in New Issue
Block a user