Skip to content

Commit d73bd21

Browse files
committed
make it actually cache
1 parent cb53235 commit d73bd21

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM node:25-bookworm-slim AS build-frontend
22

3-
RUN mkdir /opt/conditional
3+
RUN mkdir /opt/conditional
44

55
WORKDIR /opt/conditional
66

77
RUN apt-get -yq update && \
8-
apt-get -yq install curl git
8+
apt-get -yq install curl git
99

1010
COPY package.json package-lock.json /opt/conditional/
1111

@@ -14,19 +14,20 @@ RUN npm ci
1414
COPY webpack.config.js /opt/conditional
1515
COPY frontend /opt/conditional/frontend
1616

17-
RUN npm run webpack
17+
RUN npm run webpack
1818

1919
FROM astral/uv:python3.12-bookworm-slim
2020
MAINTAINER Computer Science House <webmaster@csh.rit.edu>
2121

2222
WORKDIR /opt/conditional
2323

24+
RUN apt-get -yq update && \
25+
apt-get -yq install libsasl2-dev libldap2-dev libldap-common libssl-dev gcc g++ make
26+
2427
COPY requirements.txt /opt/conditional
2528

26-
RUN apt-get -yq update && \
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
29+
RUN uv pip install --system -r requirements.txt && \
30+
apt-get -yq clean all
3031

3132
ARG PORT=8080
3233
ENV PORT=${PORT}

0 commit comments

Comments
 (0)