forked from rafalp/Misago
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 825 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
# This dockerfile is only meant for local development of Misago
# If you are looking for a proper docker setup for running Misago in production,
# please use misago-docker instead
FROM python:3.7
ENV PYTHONUNBUFFERED 1
ENV IN_MISAGO_DOCKER 1
# Install dependencies in one single command/layer
RUN apt-get update && apt-get install -y \
vim \
libffi-dev \
libssl-dev \
sqlite3 \
libjpeg-dev \
libopenjp2-7-dev \
locales \
cron \
postgresql-client \
gettext
# Add requirements and install them. We do this unnecessasy rebuilding.
ADD requirements.txt /
ADD requirements-plugins.txt /
RUN pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install -r requirements-plugins.txt
WORKDIR /srv/misago
EXPOSE 8000
CMD python manage.py runserver 0.0.0.0:8000