Vidhiii1711's picture
updated some files
9d5d2ab
Raw History Blame Contribute Delete
1.03 kB
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# Multi-stage build using openenv-base
# This Dockerfile is flexible and works for both:
# - In-repo environments (with local OpenEnv sources)
# - Standalone environments (with openenv from PyPI/Git)
# The build script (openenv build) handles context detection and sets appropriate build args.
FROM python:3.10
WORKDIR /app
COPY . .
COPY openenv.yaml /app/server/openenv.yaml
COPY openenv.yaml /app/openenv.yaml
RUN pip install --no-cache-dir openenv-core
RUN pip install --no-cache-dir -r server/requirements.txt
ENV PYTHONPATH="/app:/app/my_env:$PYTHONPATH"
# Install openenv-core explicitly
RUN /app/.venv/bin/pip install openenv-core || \
/app/.venv/bin/python -m pip install openenv-core || \
pip install openenv-core
CMD ["sh", "-c", "cd /app && uvicorn server.app:app --host 0.0.0.0 --port 7860"]