-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (25 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
41 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM node:25-trixie-slim AS build-frontend
RUN mkdir /opt/conditional
WORKDIR /opt/conditional
COPY package.json package-lock.json /opt/conditional/
RUN npm ci
COPY webpack.config.js /opt/conditional
COPY frontend /opt/conditional/frontend
RUN npm run webpack
FROM astral/uv:python3.13-trixie-slim
LABEL maintainer="Computer Science House <[email protected]>"
WORKDIR /opt/conditional
RUN apt-get -yq update && \
apt-get -yq --no-install-recommends install g++ gcc libldap-common libldap2-dev libsasl2-dev libssl-dev make && \
apt-get -yq clean all
COPY requirements.txt /opt/conditional
RUN uv pip install --system -r requirements.txt
ARG PORT=8080
ENV PORT=${PORT}
EXPOSE ${PORT}
COPY conditional /opt/conditional/conditional
COPY migrations /opt/conditional/migrations
COPY *.py package.json /opt/conditional/
COPY --from=build-frontend /opt/conditional/conditional/static/ /opt/conditional/conditional/static/
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
CMD ["sh", "-c", "gunicorn"]