Spaces:
Runtime error
Runtime error
File size: 645 Bytes
3da6704 389e786 4403328 3da6704 389e786 4403328 3da6704 a40aa40 3da6704 4403328 | 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 | FROM python:3.8-slim
# Set the working directory to /create_ai_ad
WORKDIR /create_ai_ad
# Copy the current directory contents into the container at /create_ai_ad
COPY . /create_ai_ad
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# To get permission to the user
Run useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Make port 80 available to the world outside this container
EXPOSE 80
ENV NAME StableAd
# Run app.py when the container launches
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|