File size: 364 Bytes
5e747a0 084325c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.11.8-slim
WORKDIR /app
# Install dependencies including openenv-core
RUN pip install --no-cache-dir fastapi uvicorn pydantic openenv-core
# Copy the app files
COPY . .
# Environment variables
ENV PORT=8000
ENV HOST=0.0.0.0
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
|