20 lines
540 B
Docker
20 lines
540 B
Docker
# Dockerfile for Python Service
|
|
FROM python:3.10-slim
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy the requirements.txt to the working directory and install dependencies
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the application code to the working directory
|
|
COPY . /app
|
|
|
|
# Expose the port used by the FastAPI app
|
|
EXPOSE 8005
|
|
|
|
|
|
# Run the application using the start script
|
|
CMD ["uvicorn", "app.central_storage.webapi.main:app", "--reload", "--port=8005", "--host=0.0.0.0"]
|