Skip to content

Commit 0f07f4f

Browse files
committed
feat: dockerize
1 parent 4da6b27 commit 0f07f4f

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.11-slim
2+
FROM python:3.12-slim
33

44
# Set the working directory in the container
55
WORKDIR /app

docker-compose.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.8'
2+
3+
services:
4+
web:
5+
build: .
6+
ports:
7+
- "5000:5000"
8+
environment:
9+
FLASK_ENV: ${FLASK_ENV:-development}
10+
SUPABASE_URL: ${SUPABASE_URL}
11+
SUPABASE_KEY: ${SUPABASE_KEY}

sample.env

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SUPABASE_URL=""
2+
SUPABASE_KEY=""

wsgi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from app import app
22

33
if __name__ == "__main__":
4-
app.run()
4+
app.run(host='0.0.0.0')

0 commit comments

Comments
 (0)