-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (35 loc) · 1.13 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
43
44
45
#
# Dockerfile: configuration for building the images for the web app,
# celery-beat and celery-worker.
#
# Base python image
FROM python:3.11.5-slim-bookworm
# Add the project to the python path
ENV PYTHONPATH /app
# Send all output on stdout and stderr straight to the container logs
ENV PYTHONUNBUFFERED 1
# Set the locale
ENV LC_ALL C.UTF-8
# Terminals support 256 colours
ENV TERM xterm-256color
# Create the mount point for the project files
RUN mkdir /app
WORKDIR /app
# Install any os-level dependencies
# Out of the box, no extra dependences are needed so
# this is here just as a placeholder.
RUN apt-get update \
&& apt-get install -y --no-install-recommends
RUN apt-get install -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install requirements
# Copy across all the files needed to install feeds as an editable
# package since the volume has not been mounted yet.
COPY setup.py .
COPY README.md .
COPY src ./src
COPY requirements/dev.txt /tmp/requirements.txt
RUN pip install --upgrade setuptools pip wheel \
&& pip install pip-tools \
&& pip install -r /tmp/requirements.txt