abubasith86 commited on
Commit
7f8b594
·
verified ·
1 Parent(s): 0385a8e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python base image
2
+ FROM python:3.13-slim AS builder
3
+
4
+ # Install git so we can clone the repo
5
+ RUN apt-get update && apt-get install -y git --no-install-recommends \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Set working directory
9
+ WORKDIR /app
10
+
11
+ # Clone your GitHub project
12
+ RUN git clone https://github.com/mohamedabubasith/auth-service.git .
13
+
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # ensure writable data dir
17
+ RUN mkdir -p /data
18
+
19
+ EXPOSE 8000
20
+
21
+ CMD ["python", "main.py"]