Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cacaf0b303 |
16
Dockerfile
16
Dockerfile
@@ -1,20 +1,18 @@
|
||||
# Use an official Python image (Linux)
|
||||
# Dockerfile.dev
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set a working directory
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy dependency list
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip3 install -r requirements.txt
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the project
|
||||
# Copy all code
|
||||
COPY . .
|
||||
|
||||
# Expose port (whatever your backend runs on)
|
||||
# Expose port for FastAPI
|
||||
EXPOSE 8000
|
||||
|
||||
# Run exactly your command
|
||||
# Run uvicorn in dev mode with reload
|
||||
CMD ["python", "-m", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
version: "3.9"
|
||||
|
||||
|
||||
services:
|
||||
backend:
|
||||
|
||||
Reference in New Issue
Block a user