ajout images

This commit is contained in:
François Pelletier 2023-07-05 01:12:44 -04:00
parent c2c9159631
commit 027ad1c62f
7 changed files with 64 additions and 6 deletions

View file

@ -29,15 +29,14 @@ COPY requirements.txt .
# Install Python dependencies
RUN pip install -r requirements.txt
# Copy the application code
COPY . .
# Policy for ImageMagick
COPY conf/policy.xml /etc/ImageMagick-6/policy.xml
# Expose the application port
EXPOSE 8000
# Copy the application code
COPY . .
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]