-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Build and publish application hosted in the repository for th…
…e Python instrumentation E2E test (#2095) * Build and publish the Python E2E image Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix archs Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix the tags Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix the tags Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Use reusable workflow Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix workflow name Signed-off-by: Israel Blancas <iblancasa@gmail.com> --------- Signed-off-by: Israel Blancas <iblancasa@gmail.com>
- Loading branch information
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM python:alpine3.18 | ||
|
||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
COPY app.py . | ||
|
||
ENTRYPOINT ["flask", "run", "-p", "8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route('/') | ||
def index(): | ||
return "Hi" | ||
|
||
if __name__ == "__main__": | ||
app.run(host='0.0.0.0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Flask==2.3.3 |