Skip to content

Commit b31557d

Browse files
committed
Fix built in dockerfile command
1 parent cfbd512 commit b31557d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

detectors/Dockerfile.builtIn

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ COPY ./common /app/detectors/common
2323
COPY ./built_in/* /app
2424

2525
EXPOSE 8080
26-
CMD ["uvicorn", "app:app", "--workers", "4", "--host", "0.0.0.0", "--port", "8080", "--log-config", "/app/detectors/common/log_conf.yaml"]
26+
27+
# for backwards compatibility with existing k8s deployment configs
28+
RUN mkdir /app/bin &&\
29+
echo '#!/bin/bash' > /app/bin/regex-detector &&\
30+
echo "uvicorn app:app --workers 4 --host 0.0.0.0 --port 8080 --log-config /app/detectors/common/log_conf.yaml" >> /app/bin/regex-detector &&\
31+
chmod +x /app/bin/regex-detector
32+
CMD ["/app/bin/regex-detector"]

0 commit comments

Comments
 (0)