forked from Kinto/kinto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (21 loc) · 926 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
# Mozilla Kinto server
FROM debian:sid
MAINTAINER Storage Team irc://irc.freenode.net/#kinto
ADD . /code
ENV KINTO_INI /etc/kinto/kinto.ini
# Install build dependencies, build the virtualenv and remove build
# dependencies all at once to build a small image.
RUN \
apt-get update; \
apt-get install -y python3 python3-setuptools libpq5; \
apt-get install -y build-essential git python3-dev libssl-dev libffi-dev libpq-dev; \
easy_install3 pip; \
pip install cliquet[postgresql,monitoring]; \
pip install -e /code; \
pip install cliquet-pusher cliquet-fxa kinto-attachment ; \
kinto --ini $KINTO_INI --backend=memory init; \
apt-get remove -y -qq build-essential git python3-dev libssl-dev libffi-dev libpq-dev; \
apt-get autoremove -y -qq; \
apt-get clean -y
# Run database migrations and start the kinto server
CMD kinto --ini $KINTO_INI migrate && kinto --ini $KINTO_INI start