Skip to content

Commit 6386dee

Browse files
author
Jacob Woffenden
committed
Update Dockerfile
1 parent eadd610 commit 6386dee

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

Dockerfile

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
FROM 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"]

0 commit comments

Comments
 (0)