diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f28d9af --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.github/* +.charts/* +deploy/* diff --git a/Dockerfile b/Dockerfile index d573ec8..4c3db49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,18 +4,17 @@ FROM python:3.10 # Set the working directory in the container WORKDIR /usr/src/app -# Install pipenv -RUN pip install --upgrade pip && \ - pip install pipenv +# Upgrade pip +RUN pip install --upgrade pip # Copy Pipfile to the working directory -COPY Pipfile /usr/src/app/ +COPY requirements.txt /usr/src/app/ # Install any needed packages specified in Pipfile -RUN pipenv install --deploy --ignore-pipfile +RUN pip install --no-cache-dir -r requirements.txt # Copy the current directory contents into the container at /usr/src/app COPY . /usr/src/app -# Run run.sh when the container launches -CMD ["pipenv", "run", "python", "app.py"] +# Run app.py when the container launches +CMD ["python", "app.py"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..26bb2d4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,18 @@ +-i https://pypi.org/simple +cachetools==5.3.3; python_version >= '3.7' +certifi==2024.2.2; python_version >= '3.6' +charset-normalizer==3.3.2; python_full_version >= '3.7.0' +google-auth==2.29.0; python_version >= '3.7' +idna==3.6; python_version >= '3.5' +kubernetes==29.0.0; python_version >= '3.6' +oauthlib==3.2.2; python_version >= '3.6' +pyasn1==0.6.0; python_version >= '3.8' +pyasn1-modules==0.4.0; python_version >= '3.8' +python-dateutil==2.9.0.post0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2' +pyyaml==6.0.1; python_version >= '3.6' +requests==2.31.0; python_version >= '3.7' +requests-oauthlib==2.0.0; python_version >= '3.4' +rsa==4.9; python_version >= '3.6' and python_version < '4' +six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2' +urllib3==2.2.1; python_version >= '3.8' +websocket-client==1.7.0; python_version >= '3.8'