-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (30 loc) · 817 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
32
33
34
35
36
37
FROM python:3.12
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE 1
ENV PYTHONUNBUFFERED 1
ENV IN_MISAGO_DOCKER 1
ENV MISAGO_PLUGINS "/misago/plugins"
# Install dependencies in one single command/layer
RUN apt-get update && \
apt-get install -y --allow-unauthenticated \
vim \
libffi-dev \
libssl-dev \
libjpeg-dev \
libopenjp2-7-dev \
locales \
cron \
postgresql-client-15 \
gettext && \
apt-get clean
# Make current directory available as "Misago" within docker
ADD . /misago
WORKDIR /misago
# Install requirements files
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Bootstrap plugins
RUN ./.run bootstrap_plugins
# Expose port 3031 from Docker
EXPOSE 3031
# Call entrypoint script to setup
CMD ["uwsgi", "--ini", "uwsgi.ini"]