-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (22 loc) · 924 Bytes
/
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
FROM python:3.12
LABEL maintainer "DataMade <[email protected]>"
RUN apt-get update && \
apt-get install -y --no-install-recommends postgresql-client locales curl && \
rm -rf /var/lib/apt/lists/* && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
ENV LANG en_US.UTF-8
ENV LC_NUMERIC en_US.UTF-8
RUN mkdir /app
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN wget https://github.com/BurntSushi/xsv/releases/download/0.13.0/xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz && \
tar xvfz xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz && \
rm xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz && \
mv xsv /usr/local/bin
COPY . /app
ENV DJANGO_SECRET_KEY 'foobar'
ENV DJANGO_FLUSH_CACHE_KEY 'foobar'
ENV DJANGO_DEBUG 'False'
RUN python manage.py collectstatic --noinput