Skip to content

Commit

Permalink
Change docker file and add start service
Browse files Browse the repository at this point in the history
  • Loading branch information
ErdemOzgen committed Mar 1, 2024
1 parent 85bcce3 commit 1c7017a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ ENV blackdagger_HOST=0.0.0.0
ENV blackdagger_PORT=8080

# Start blackdagger in the background and gotty in the foregrounds
CMD bash -c "blackdagger server &" && gotty -p 8090 -w --credential blackdagger:blackdagger /bin/bash
COPY startservices.sh /home/blackdagger/startservices.sh
#RUN chmod +x startservices.sh
#ENTRYPOINT [ "./startservices.sh" ]
7 changes: 7 additions & 0 deletions startservices.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Run your other command here
blackdagger server &

# Run gotty in the foreground
gotty -p 8090 -w --credential blackcart:blackcart /bin/bash

0 comments on commit 1c7017a

Please sign in to comment.