Skip to content

Commit 1897aec

Browse files
committed
Add ENTRYPOINT to Dockerfile
1 parent e35fdb2 commit 1897aec

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ RUN echo "deb http://download.cloudstack.org/ubuntu noble 4.22" > /etc/a
1313
apt install -y cloudstack-management && \
1414
apt install -y cloudstack-usage
1515

16+
COPY entrypoint.sh /entrypoint.sh
17+
1618
EXPOSE 8080 8250 8096 22
19+
20+
ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3-
service ssh restart
3+
systemctl enable ssh || systemctl enable sshd
4+
systemctl restart ssh || systemctl restart sshd
45

56
tail -f /dev/null

0 commit comments

Comments
 (0)