Skip to content

Commit 3fb8d5d

Browse files
committed
dockerfile-added
1 parent c1c093b commit 3fb8d5d

File tree

4 files changed

+21
-29
lines changed

4 files changed

+21
-29
lines changed

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.10-slim
2+
3+
ENV PYTHONDONTWRITEBYTECODE 1
4+
ENV PYTHONUNBUFFERED 1
5+
6+
WORKDIR /app
7+
8+
COPY requirements.txt /app/
9+
10+
RUN pip install --upgrade pip
11+
RUN pip install -r requirements.txt
12+
13+
COPY . /app/
14+
15+
EXPOSE 5000
16+
17+
CMD ["python", "run.py"]

README.md

+2-27
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fflask3&demo-title=Flask%203%20%2B%20Vercel&demo-description=Use%20Flask%203%20on%20Vercel%20with%20Serverless%20Functions%20using%20the%20Python%20Runtime.&demo-url=https%3A%2F%2Fflask3-python-template.vercel.app%2F&demo-image=https://assets.vercel.com/image/upload/v1669994156/random/flask.png)
1+
# LeetCode Kazakhstan Community
22

3-
# Flask + Vercel
4-
5-
This example shows how to use Flask 3 on Vercel with Serverless Functions using the [Python Runtime](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python).
6-
7-
## Demo
8-
9-
https://flask-python-template.vercel.app/
10-
11-
## How it Works
12-
13-
This example uses the Web Server Gateway Interface (WSGI) with Flask to enable handling requests on Vercel with Serverless Functions.
14-
15-
## Running Locally
16-
17-
```bash
18-
npm i -g vercel
19-
vercel dev
20-
```
21-
22-
Your Flask application is now available at `http://localhost:3000`.
23-
24-
## One-Click Deploy
25-
26-
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):
27-
28-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fflask3&demo-title=Flask%203%20%2B%20Vercel&demo-description=Use%20Flask%203%20on%20Vercel%20with%20Serverless%20Functions%20using%20the%20Python%20Runtime.&demo-url=https%3A%2F%2Fflask3-python-template.vercel.app%2F&demo-image=https://assets.vercel.com/image/upload/v1669994156/random/flask.png)
3+
Open-source application for Kazakhstan LeetCode Community!

app/templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h2 class="text-2xl font-semibold mb-4 text-gray-800">Complexity Analysis</h2>
4747

4848
<!-- Github Stats -->
4949
<div class="flex justify-center space-x-4 mt-8 mb-6">
50-
<a href="https://github.com/silvermete0r/https://github.com/silvermete0r/leetcode-solution-complexity-analyzer">
50+
<a href="https://github.com/silvermete0r/leetcode-solution-complexity-analyzer">
5151
<img src="https://img.shields.io/github/stars/silvermete0r/leetcode-solution-complexity-analyzer?style=for-the-badge">
5252
</a>
5353
<a href="https://github.com/silvermete0r/leetcode-solution-complexity-analyzer">

app/templates/stars.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2 class="text-2xl font-semibold mb-4 text-gray-800">Top 10 LeetCode Users in K
4646

4747
<!-- Github Stats -->
4848
<div class="flex justify-center space-x-4 mt-8 mb-6">
49-
<a href="https://github.com/silvermete0r/https://github.com/silvermete0r/leetcode-solution-complexity-analyzer">
49+
<a href="https://github.com/silvermete0r/leetcode-solution-complexity-analyzer">
5050
<img src="https://img.shields.io/github/stars/silvermete0r/leetcode-solution-complexity-analyzer?style=for-the-badge">
5151
</a>
5252
<a href="https://github.com/silvermete0r/leetcode-solution-complexity-analyzer">

0 commit comments

Comments
 (0)