forked from andika/membership-be
19 lines
377 B
Docker
19 lines
377 B
Docker
# Dockerfile.dev
|
|
FROM python:3.12-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy all code
|
|
COPY . .
|
|
|
|
# Expose port for FastAPI
|
|
EXPOSE 8000
|
|
|
|
# Run uvicorn in dev mode with reload
|
|
CMD ["python", "-m", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|