forked from trumanw/whipper-base
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (23 loc) · 861 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
24
25
26
27
28
29
30
31
FROM trumanwoo/docker-jebian
MAINTAINER Truman Woo <[email protected]>
ENV APP_VERSION 1.0
ENV APP_NAME wipbase
# Install unzip
RUN apt-get install -y unzip
COPY target/universal/$APP_NAME-$APP_VERSION.zip /root/apps/
WORKDIR /root/apps
# Setup database connections in environment variables
ENV BASE_DB_HOST jdbc:mysql://db:3306/whipper_base?characterEncoding=utf-8
ENV BASE_DB_USER root
ENV BASE_DB_PASSWD 123456
# Setup rabbitmq host ip addr
ENV RABBIT_MQ_HOST $MQ_PORT_5672_TCP_ADDR
ENV RABBIT_MQ_USER admin
ENV RABBIT_MQ_PASSWD 654321
# Setup redis host ip addr
ENV REDIS_HOST $REDIS_PORT_6379_TCP_ADDR
ENV REDIS_PORT 6379
RUN unzip $APP_NAME-$APP_VERSION.zip && \
rm $APP_NAME-$APP_VERSION.zip
ENTRYPOINT ["./wipbase-1.0/bin/wipbase", "-Dhttp.port=9000"]
EXPOSE 9000