forked from Kinto/kinto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (19 loc) · 884 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 python3-pip libpq5; \
apt-get install -y build-essential git python3-dev libssl-dev libffi-dev libpq-dev; \
pip3 install -e /code[postgresql,monitoring]; \
pip3 install kinto-pusher kinto-fxa kinto-attachment ; \
kinto --ini $KINTO_INI init --backend=memory; \
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