Skip to content

Commit 65b02f6

Browse files
authored
try change
1 parent 49491a9 commit 65b02f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frameworks/Python/blacksheep/blacksheep-nginx-unit.dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ RUN CORE_COUNT=$(nproc) && \
1818
sed -i "s|\"idle_timeout\": [0-9]*|\"idle_timeout\": 3600|g" /blacksheep/unit-config.json
1919

2020
# RUN chmod +x start-unit.sh
21-
RUN unitd && \
22-
curl -X PUT --data-binary @/blacksheep/unit-config.json --unix-socket \
23-
/var/run/control.unit.sock http://localhost/config
21+
# RUN unitd && \
22+
# curl -X PUT --data-binary @/blacksheep/unit-config.json --unix-socket \
23+
# /var/run/control.unit.sock http://localhost/config
24+
25+
COPY ./unit-config.json /docker-entrypoint.d/unit-config.json
2426
ENTRYPOINT []
2527
EXPOSE 8080
2628
CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]

0 commit comments

Comments
 (0)