forked from jfrostburke/snex2
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (14 loc) · 746 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (14 loc) · 746 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
FROM python:3.11-slim
ENTRYPOINT ["./run.sh"]
RUN apt-get update && apt-get install -y git libpq-dev gcc gfortran mariadb-client curl \
libmariadb-dev libmagic-dev libcfitsio-bin libffi-dev libgsl-dev \
pkg-config && apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
COPY pyproject.toml uv.lock /snex2/
RUN /root/.local/bin/uv --directory=/snex2 export --no-emit-project --format pylock.toml > /snex2/pylock.toml
RUN /root/.local/bin/uv pip sync /snex2/pylock.toml --system
COPY . /snex2
RUN /root/.local/bin/uv pip install /snex2 --no-deps --system
WORKDIR /snex2
RUN CACHE_BACKEND=django.core.cache.backends.locmem.LocMemCache \
python manage.py collectstatic --noinput