From d8c119c67a6c238237410804b09046b026f95127 Mon Sep 17 00:00:00 2001 From: Laskaratos Dimitris Date: Fri, 29 Aug 2025 15:13:30 +0300 Subject: [PATCH] Added gitlab CI file --- Dockerfile | 25 +++++++++++++++++++++++++ requirements.txt | 8 ++++++++ 2 files changed, 33 insertions(+) create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ebc2b57 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +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", "service-resource-manager-implementation/src"] + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9ea2d85 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +connexion<3.0.0 +connexion[swagger-ui] +setuptools >= 21.0.0 +requests==2.32.4 +psycopg2-binary +urllib3 +pydantic-extra-types==2.10.3 +sunrise6g-opensdk==1.0.2.post3 \ No newline at end of file -- GitLab