Spaces:
Running
Running
File size: 1,261 Bytes
fe75183 c59af18 a9f60b0 c59af18 5ddd617 c59af18 5ddd617 c59af18 2af9461 c59af18 fe75183 4e322ec fe75183 4e322ec fe75183 4e322ec fe75183 4e322ec fe75183 4e322ec fe75183 4e322ec fe75183 4e322ec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# gradio
FROM python:3.10 as gradio
# Set the working directory in the container
# Set the working directory in the container
WORKDIR /app
RUN pip install --no-cache-dir -U poetry
# Copy all files from the current directory to the working directory in the container
COPY config.yml poetry.lock pyproject.toml /app/
RUN poetry config virtualenvs.create false
RUN poetry install --with=dev
COPY meta_prompt /app/meta_prompt/
COPY app /app/app/
RUN poetry install --with=dev
# Expose the port (if necessary)
EXPOSE 7860
# Run the script when the container launches
CMD python app/gradio_meta_prompt.py
# # streamlit
# FROM python:3.10 as streamlit
# # Set the working directory in the container
# WORKDIR /app
# RUN pip install --no-cache-dir -U poetry
# # Copy all files from the current directory to the working directory in the container
# COPY config.yml poetry.lock pyproject.toml /app/
# RUN poetry config virtualenvs.create false
# RUN poetry install --with=dev
# COPY meta_prompt /app/meta_prompt/
# COPY app /app/app/
# # COPY app.py /app/app.py
# RUN poetry install --with=dev
# # Expose the Streamlit default port
# EXPOSE 8501
# # Run the Streamlit script when the container launches
# CMD ["streamlit", "run", "app/streamlit_tab_app.py"] |