use start.sh instead of CMD
This commit is contained in:
parent
910d1262cc
commit
52e62a8700
2 changed files with 7 additions and 1 deletions
|
@ -16,7 +16,8 @@ RUN pip3 install -r requirements-pydantic-pin.txt
|
||||||
RUN pip3 install https://github.com/datarhei/core-client-python/archive/refs/tags/1.1.0.tar.gz
|
RUN pip3 install https://github.com/datarhei/core-client-python/archive/refs/tags/1.1.0.tar.gz
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN chmod +x start.sh
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
CMD [ "waitress-serve", "--port=8080", "--trusted-proxy", "*", "--trusted-proxy-headers", "forwarded", "--log-untrusted-proxy-headers", "--threads", "16", "--call", "api:create_app" ]
|
ENTRYPOINT [ "start.sh" ]
|
5
src/api/start.sh
Normal file
5
src/api/start.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
waitress-serve --port=8080 --trusted-proxy='*' \
|
||||||
|
--trusted-proxy-headers="x-forwarded-for","x-forwarded-host","x-forwarded-proto","x-forwarded-port" \
|
||||||
|
--log-untrusted-proxy-headers --threads=16 --call api:create_app
|
Loading…
Add table
Reference in a new issue