File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed
Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 11FROM ghcr.io/ministryofjustice/analytical-platform-airflow-python-base:1.8.0@sha256:a7d7872482a845e67fc7f78401a6e4a89d906f07d67aca1f7c636cd3c92ae81a
22
3- # Below is an example of how to use the base image
3+ ENV UV_COMPILE_BYTECODE=1
44
5- # Switch to root user to install packages
6- # USER root
7-
8- # Copy requirements.txt
9- # COPY requirements.txt requirements.txt
10-
11- # Copy application code
12- # COPY src/ .
13-
14- # Install requirements
15- # RUN <<EOF
16- # pip install --no-cache-dir --requirement requirements.txt
17- # EOF
18-
19- # Switch back to non-root user (analyticalplatform)
20- # USER ${CONTAINER_UID}
5+ RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
6+ --mount=type=bind,source=uv.lock,target=uv.lock \
7+ uv sync
218
229# Execute main.py script
2310# ENTRYPOINT ["python3", "main.py"]
You can’t perform that action at this time.
0 commit comments