apply languages
This commit is contained in:
parent
0b3044350b
commit
cdcdff6651
@ -7,7 +7,7 @@ from Main.models import Solution, Set
|
||||
|
||||
|
||||
def generate_token():
|
||||
letters = '1234567890qwertyuiopasdfghjklzxcvbnm!@#$%^&*()QWERTYUIOPASDFGHJKLZXCVBNM'
|
||||
letters = '1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
|
||||
return ''.join([choice(letters) for _ in range(30)])
|
||||
|
||||
|
||||
|
@ -10,6 +10,10 @@ ENV PYTHONUNBUFFERED 1
|
||||
RUN mkdir -p /usr/src/app/
|
||||
WORKDIR /usr/src/app/
|
||||
|
||||
RUN pip install requests
|
||||
|
||||
COPY . /usr/src/app/
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
CMD ["python", "main.py"]
|
||||
|
||||
docker run --name runner --volume=/var/run/docker.sock:/var/run/docker.sock --privileged -e TOKEN=1DGan0xqx51N^wN@i7aqcF@npzrZJr runner
|
@ -1,5 +1,5 @@
|
||||
from multiprocessing import Process
|
||||
from os import getenv, environ
|
||||
from os import getenv
|
||||
from os.path import join
|
||||
from tempfile import TemporaryDirectory
|
||||
from time import sleep
|
||||
|
Loading…
Reference in New Issue
Block a user