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
|
||||
|
||||
# S3 bucket in Cloud Services prod IAM
|
||||
ADD https://s3.amazonaws.com/dumb-init-dist/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
|
||||
RUN chmod +x /usr/local/bin/dumb-init
|
||||
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
||||
# Add Tini
|
||||
ENV "TINI_VERSION" "v0.16.1"
|
||||
ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
|
||||
RUN chmod +x "/tini"
|
||||
ENTRYPOINT ["/tini", "--"]
|
||||
|
||||
# install syncserver dependencies
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
@ -29,3 +30,5 @@ RUN python ./setup.py develop
|
||||
|
||||
# run as non priviledged user
|
||||
USER app
|
||||
|
||||
CMD [ "/usr/local/bin/gunicorn", "syncserver.wsgi_app" ]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user