passage à tiny
This commit is contained in:
parent
efa74d3c26
commit
54daf115dd
11
Dockerfile
11
Dockerfile
@ -7,10 +7,11 @@ ENV LANG C.UTF-8
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# S3 bucket in Cloud Services prod IAM
|
# Add Tini
|
||||||
ADD https://s3.amazonaws.com/dumb-init-dist/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
|
ENV "TINI_VERSION" "v0.16.1"
|
||||||
RUN chmod +x /usr/local/bin/dumb-init
|
ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
|
||||||
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
RUN chmod +x "/tini"
|
||||||
|
ENTRYPOINT ["/tini", "--"]
|
||||||
|
|
||||||
# install syncserver dependencies
|
# install syncserver dependencies
|
||||||
COPY ./requirements.txt /app/requirements.txt
|
COPY ./requirements.txt /app/requirements.txt
|
||||||
@ -29,3 +30,5 @@ RUN python ./setup.py develop
|
|||||||
|
|
||||||
# run as non priviledged user
|
# run as non priviledged user
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
|
CMD [ "/usr/local/bin/gunicorn", "syncserver.wsgi_app" ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user