1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-12-24 18:32:00 +00:00

feat: add dockerfile

This commit is contained in:
Baoshuo Ren 2023-03-21 20:13:51 +08:00
parent c7c006bd3d
commit 0cd9b4c5da
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
3 changed files with 14 additions and 9 deletions

View File

@ -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_');

View 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" ]