Upload files to "/"
This commit is contained in:
parent
9704662342
commit
2bae2e68c5
|
|
@ -0,0 +1,20 @@
|
|||
# Use an official Python runtime as a parent image
|
||||
FROM python:3.9-slim
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Install any needed packages specified in requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Make port 5000 available to the world outside this container
|
||||
EXPOSE 5000
|
||||
|
||||
# Define environment variable
|
||||
ENV NAME World
|
||||
|
||||
# Run app.py when the container launches
|
||||
CMD ["python3", "app.py"]
|
||||
8
app.py
8
app.py
|
|
@ -34,9 +34,7 @@ HTML_TEMPLATE = '''
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<center><h1>Master Chris</h1>
|
||||
<h1>Kitten Alice</h1>
|
||||
<h1>Contract</h1></center>
|
||||
<h1>Chris/Alice Master/Kitten Contract (Read Only)</h1>
|
||||
<ul id="list">
|
||||
{% for item in items %}
|
||||
<li>{{ item }} <button onclick="deleteItem({{ loop.index0 }})">Delete</button></li>
|
||||
|
|
@ -97,9 +95,7 @@ READ_ONLY_HTML_TEMPLATE = '''
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<center><h1>Master Chris</h1>
|
||||
<h1>Kitten Alice</h1>
|
||||
<h1>Contract</h1></center>
|
||||
<h1>Chris/Alice Master/Kitten Contract</h1>
|
||||
<ul id="list">
|
||||
{% for item in items %}
|
||||
<li>{{ item }}</li>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Flask==2.0.1
|
||||
Loading…
Reference in New Issue