diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..ebc2b57397ffe6b21868bcab0f80a03af3079914 --- /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 0000000000000000000000000000000000000000..9ea2d853568823883678e0f01b492b8d83f9fea6 --- /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