Skip to content

Commit cb53235

Browse files
committed
make dockerfile use uv and separate dependency stages to improve caching for local builds
1 parent 61e1cfd commit cb53235

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ COPY frontend /opt/conditional/frontend
1616

1717
RUN npm run webpack
1818

19-
FROM docker.io/python:3.12-slim-bookworm
19+
FROM astral/uv:python3.12-bookworm-slim
2020
MAINTAINER Computer Science House <webmaster@csh.rit.edu>
2121

2222
WORKDIR /opt/conditional
2323

2424
COPY requirements.txt /opt/conditional
2525

2626
RUN apt-get -yq update && \
27-
apt-get -yq install libsasl2-dev libldap2-dev libldap-common libssl-dev gcc g++ make && \
28-
pip install -r requirements.txt && \
29-
apt-get -yq clean all
27+
apt-get -yq install libsasl2-dev libldap2-dev libldap-common libssl-dev gcc g++ make
28+
RUN uv pip install --system -r requirements.txt
29+
RUN apt-get -yq clean all
3030

3131
ARG PORT=8080
3232
ENV PORT=${PORT}

0 commit comments

Comments
 (0)