-
Notifications
You must be signed in to change notification settings - Fork 68
/
Dockerfile
23 lines (15 loc) · 702 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Notice! Don't use openjdk:latest docker image, it's too big and will build fail in docker:DinD
FROM openjdk:alpine
MAINTAINER [email protected]
RUN mkdir -p /root/cookim/
ADD target/scala-2.11/CookIM-assembly-0.2.4-SNAPSHOT.jar /root/cookim/cookim.jar
ADD conf /root/cookim/conf
ADD www /root/cookim/www
WORKDIR /root/cookim
RUN echo '#!/bin/ash' >> /root/cookim/run.sh
RUN echo 'java -classpath "/root/cookim/cookim.jar" com.cookeem.chat.CookIM -n -h $(hostname -f) -w $WEB_PORT -a $AKKA_PORT -s $SEED_NODES -m $MONGO_URI' >> /root/cookim/run.sh
RUN chmod a+x /root/cookim/run.sh
CMD [ "/root/cookim/run.sh" ]
# sbt clean assembly
# docker build -t cookeem/cookim .
# docker push cookeem/cookim