FPDC: rework the build config
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
a0298a539c
commit
5db90e0b7c
1 changed files with 2 additions and 6 deletions
|
@ -12,21 +12,17 @@ spec:
|
||||||
|
|
||||||
RUN dnf install -y python3-ujson python3-gunicorn && dnf clean all \
|
RUN dnf install -y python3-ujson python3-gunicorn && dnf clean all \
|
||||||
&& mkdir /app \
|
&& mkdir /app \
|
||||||
&& chown 1001:1001 /app \
|
&& pip3 install --no-cache-dir kinto
|
||||||
&& groupadd --gid 1001 app \
|
|
||||||
&& useradd --no-create-home --uid 1001 --gid 1001 --home-dir /app app
|
|
||||||
|
|
||||||
USER 1001
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
RUN pip3 install --no-cache-dir --user kinto
|
|
||||||
|
|
||||||
ENV KINTO_INI=/etc/kinto/kinto.ini \
|
ENV KINTO_INI=/etc/kinto/kinto.ini \
|
||||||
PYTHONPATH=/app/
|
PYTHONPATH=/app/
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD https://raw.githubusercontent.com/mozilla-services/kinto-dist/master/app.wsgi /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"]
|
CMD ["gunicorn-3", "-b", ":8080", "--paste", "/etc/kinto/kinto.ini"]
|
||||||
strategy:
|
strategy:
|
||||||
type: Docker
|
type: Docker
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue