first commit
commit
2f2ffbabc4
|
|
@ -0,0 +1,17 @@
|
|||
# Use official Python image
|
||||
FROM python:3.9-slim
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy files
|
||||
COPY . /app
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install flask
|
||||
|
||||
# Expose Flask's default port
|
||||
EXPOSE 2233
|
||||
|
||||
# Start the Flask application
|
||||
CMD ["python", "app.py"]
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def home():
|
||||
return render_template('index.html')
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True,host='0.0.0.0', port=2233)
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "2233:2233"
|
||||
volumes:
|
||||
- .:/app
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 261 KiB |
|
|
@ -0,0 +1,25 @@
|
|||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.fullscreen-bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.fullscreen-bg img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain; /* Changed to 'contain' for better scaling */
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Coming Soon</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="fullscreen-bg">
|
||||
<img src="{{ url_for('static', filename='comingsoon.jpg') }}" alt="Coming Soon" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue