-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 807 Bytes
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 807 Bytes
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
FROM ghcr.io/astral-sh/uv:python3.12-bookworm AS builder
# install nvm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
ENV NVM_DIR=/root/.nvm
COPY / /opt/indicorp
WORKDIR /opt/indicorp
RUN <<EOF
. $NVM_DIR/nvm.sh
nvm install
uv venv
# After having assets on plugin side we can start using simply `make deps`
make deps-py
make deps-core-js
uv run indico/bin/maintenance/build-wheel.py plugin --no-git /opt/indicorp/
EOF
FROM getindico/indico:latest
# Copy built wheels into the image
COPY --chown=indico:indico --from=builder /opt/indicorp/dist/. /opt/indico/dist/
# Copy config files
COPY --chown=indico:indico etc/. /opt/indico/etc/
# Install wheels
RUN <<EOF
/opt/indico/.venv/bin/pip install /opt/indico/dist/*.whl
/opt/indico/.venv/bin/pip cache purge
EOF