changed the UV install step to implicit pull with binary copy
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Failing after 55s
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been skipped
Run linting on the backend code / Build (pull_request) Successful in 2m37s
Run testing on the backend code / Build (pull_request) Failing after 1m53s
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Failing after 55s
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been skipped
Run linting on the backend code / Build (pull_request) Successful in 2m37s
Run testing on the backend code / Build (pull_request) Failing after 1m53s
This commit is contained in:
@@ -1,16 +1,8 @@
|
|||||||
FROM python:3.12-slim-bookworm
|
# use python 3.12 as a base image
|
||||||
|
FROM docker.io/python:3.12-alpine
|
||||||
|
|
||||||
# The installer requires curl (and certificates) to download the release archive
|
# use the latest version of uv, independently of the python version
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||||
|
|
||||||
# Download the latest installer
|
|
||||||
ADD https://astral.sh/uv/install.sh /uv-installer.sh
|
|
||||||
|
|
||||||
# Run the installer then remove it
|
|
||||||
RUN sh /uv-installer.sh && rm /uv-installer.sh
|
|
||||||
|
|
||||||
# Ensure the installed binary is on the `PATH`
|
|
||||||
ENV PATH="/root/.local/bin/:$PATH"
|
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user