Skip to content

Commit 3a2ec40

Browse files
authored
fix
1 parent d126655 commit 3a2ec40

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

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

20-
# 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
24-
25-
COPY ./unit-config.json /docker-entrypoint.d/config.json
20+
RUN chmod +x start-unit.sh
2621
ENTRYPOINT []
2722
EXPOSE 8080
2823

2924
# CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]
30-
# CMD ["./start-unit.sh"]
25+
CMD ["./start-unit.sh"]

0 commit comments

Comments
 (0)