-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 1.09 KB
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
FROM python:3.12-slim-bookworm
LABEL org.opencontainers.image.authors="Open Knowledge Foundation"
WORKDIR /app
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y curl ca-certificates gnupg
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs
RUN apt-get install -y nginx
RUN apt-get install -y supervisor
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN rm /etc/nginx/sites-enabled/default
COPY deployment/nginx.conf /etc/nginx/conf.d/default.conf
COPY deployment/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY deployment/gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
COPY docs ./docs
COPY foundation ./foundation
COPY .env.base ./.env.base
COPY lib ./lib
COPY sendemail ./sendemail
COPY static ./static
COPY templates ./templates
COPY manage.py .
COPY package-lock.json .
COPY package.json .
COPY requirements.txt .
COPY deployment/gunicorn.config.py .
RUN pip install -r requirements.txt
ENV PORT=80
EXPOSE $PORT
COPY docker-entrypoint.d /docker-entrypoint.d
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]