mirror of
https://github.com/linuxserver/docker-wireguard.git
synced 2026-01-20 20:13:06 +08:00
22 lines
457 B
Plaintext
22 lines
457 B
Plaintext
# Use the official Python image as base
|
|
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy requirements file and install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the FastAPI application
|
|
COPY . .
|
|
|
|
# Expose the port FastAPI will run on
|
|
EXPOSE 8000
|
|
|
|
# Command to run the app using uvicorn
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
fastapi
|
|
uvicorn
|
|
passlib[bcrypt] |