Skip to content

Commit

Permalink
Added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
RenatoParker committed Feb 26, 2025
1 parent 35df227 commit 99f5f2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.9-slim
COPY . /oopt-gnpy-api
WORKDIR /oopt-gnpy-api
RUN apt update; apt install -y git
RUN pip install .
RUN mkdir -p /opt/application/oopt-gnpy/autodesign
CMD [ "python", "./samples/rest_example.py" ]
6 changes: 6 additions & 0 deletions gnpyapi/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@

"""GNPy official API
"""
from flask import Flask

app = Flask(__name__)

import gnpyapi.core.route.path_request_route
import gnpyapi.core.route.status_route

0 comments on commit 99f5f2e

Please sign in to comment.