-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
42 lines (30 loc) · 1.01 KB
/
Dockerfile
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
41
42
FROM python:3.10-bullseye
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y python3 git python3-pip \
libxml2-dev libxslt1-dev python3-virtualenv locales libffi-dev \
build-essential python3-dev zlib1g-dev libssl-dev gettext git openjdk-11-jdk-headless \
libpq-dev libjpeg-dev curl --no-install-recommends
RUN dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN mkdir /data
RUN mkdir /code
COPY src/requirements.txt /tmp/requirements.txt
RUN pip install uv && uv pip install --system gunicorn -Ur /tmp/requirements.txt
ENV PLUM_DATA_DIR /data
RUN mkdir /code/plum
COPY src /code/plum/src
COPY docker/entrypoint.sh /usr/local/bin/plum
RUN chmod +x /usr/local/bin/plum
WORKDIR /code/plum/src
RUN mkdir /data/logs
ENV DJANGO_SETTINGS_MODULE plum.settings
RUN mkdir /static
RUN /usr/local/bin/plum init
VOLUME /data
EXPOSE 80
ENTRYPOINT ["plum"]