FPDC: rework the build config

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2019-09-02 11:17:43 +02:00 committed by Pierre-Yves Chibon
parent a0298a539c
commit 5db90e0b7c

View file

@ -12,21 +12,17 @@ spec:
RUN dnf install -y python3-ujson python3-gunicorn && dnf clean all \
&& mkdir /app \
&& chown 1001:1001 /app \
&& groupadd --gid 1001 app \
&& useradd --no-create-home --uid 1001 --gid 1001 --home-dir /app app
&& pip3 install --no-cache-dir kinto
USER 1001
EXPOSE 8080
RUN pip3 install --no-cache-dir --user kinto
ENV KINTO_INI=/etc/kinto/kinto.ini \
PYTHONPATH=/app/
WORKDIR /app
ADD https://raw.githubusercontent.com/mozilla-services/kinto-dist/master/app.wsgi /app
USER 1001
CMD ["gunicorn-3", "-b", ":8080", "--paste", "/etc/kinto/kinto.ini"]
strategy:
type: Docker