-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (14 loc) · 783 Bytes
/
Dockerfile
File metadata and controls
22 lines (14 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM java:8
# Install the AWS CLI
RUN apt-get update && apt-get -y install python curl unzip && cd /tmp && curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" && unzip awscli-bundle.zip && ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws && rm awscli-bundle.zip && rm -rf awscli-bundle
# Install the new entry-point script
# Requires BUCKET_NAME env, which should be S3 bucket+prefix eg. bucket/central-configs/apps/vote-vot/global/esco-bot
# Set env during docker run
COPY env-entrypoint.sh /env-entrypoint.sh
ADD target/botit-0.0.1/ /opt/cmtk-bot
#ADD target/price-bot-1.1.0/logs /logs
ADD target/botit-classes.jar /opt/botit/lib
EXPOSE 8080
#ENTRYPOINT ["bash"]
ENTRYPOINT ["/env-entrypoint.sh"]
CMD ["/opt/cmtk-bot/bin/BotIt"]