Improved dockerfile.
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Guillem Borrell 2024-05-25 22:40:59 +02:00
parent 28cf56fa59
commit bdeccf8e23

View file

@ -1,16 +1,19 @@
# Use an official Python runtime as a parent image
FROM python:3.12-slim
# Set up uv
ENV VIRTUAL_ENV=/usr/local
ADD --chmod=755 /
RUN / && rm /
# Set the working directory in the container to /app
# Add the current directory contents into the container at /app
ADD . /app
# Install any needed packages specified in requirements.txt
RUN pip install uv
RUN uv pip install -r requirements.txt
RUN uv pip install -e .
RUN /root/.cargo/bin/uv pip install --no-cache -r requirements.txt
RUN /root/.cargo/bin/uv pip install -e .
# Make port 80 available to the world outside this container