Commit 65ef0698 authored by Dimitrios Gogos's avatar Dimitrios Gogos
Browse files

fix: return correct response on /apps delete

parent c42aa8f8
Loading
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
FROM python:3.12-alpine

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY requirements.txt /usr/src/app/
ENV PYTHONUNBUFFERED=1

RUN python3 -m venv .venv
RUN source .venv/bin/activate

RUN pip3 install --upgrade pip

RUN pip3 install wheel --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org

RUN pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt

COPY . /usr/src/app

EXPOSE 8080

ENTRYPOINT ["python3"]

CMD ["-m", "src"]
+4 −0
Original line number Diff line number Diff line
@@ -51,6 +51,10 @@ def _safe_http_json_response(response):
    if response is None:
        return {"error": "Adapter returned no response"}, 502

    # Adapter returned a bare status code integer
    if isinstance(response, int):
        return {}, response

    # Adapter returned HTTP response
    try:
        return response.json(), response.status_code