diff --git a/CHECKS b/CHECKS new file mode 100644 index 00000000..5affecfc --- /dev/null +++ b/CHECKS @@ -0,0 +1,5 @@ +WAIT=30 +TIMEOUT=10 +ATTEMPTS=60 # 60 * 30 = 30 min + +/ Playground diff --git a/Dockerfile b/Dockerfile index 2365f893..3f0887f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,13 @@ -FROM python:3.8 - -EXPOSE 8080 - -RUN /usr/local/bin/python -m pip install --upgrade pip - -WORKDIR /usr/src/app - -COPY requirements.txt ./ - -RUN set -ex && pip install -r requirements.txt - -COPY . . - -CMD ["python", "server.py"] +FROM python:3.8 + +EXPOSE 8080 + +RUN /usr/local/bin/python -m pip install --upgrade pip + +WORKDIR /usr/src/app + +COPY requirements.txt ./ + +RUN set -ex && pip install -r requirements.txt + +COPY . . diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..c5c1bfa8 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +web: python server.py +