ClaptrapBot/Dockerfile
Unknown 969159a525 Revert "Merge remote-tracking branch 'origin/devel' into devel"
This reverts commit dde5a986985027d0e3639e137bc6f71a63ca1038.
2018-02-15 02:03:05 +01:00

13 lines
300 B
Docker

FROM debian:latest
#RUN apt-key update
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install openjdk-8-jre openjdk-8-jdk
WORKDIR /bot_src
ADD . /bot_src/
RUN chmod +x gradlew
ENV PORT=8080
ENV TOKEN=10
RUN ./gradlew build
CMD java -Xmx500m -jar build/libs/DiscordBot-0.1.0.jar -t ${TOKEN}