Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (20 sloc) 699 Bytes
FROM clojure:openjdk-11-lein
# Yetibot needs curl. If we ever switch to alpine, make sure to install it.
MAINTAINER Trevor Hartman <trevorhartman@gmail.com>
EXPOSE 3000
ENV WORKDIR /usr/src/app
ENV LOGDIR /var/log/yetibot
RUN mkdir -p $WORKDIR && mkdir -p $LOGDIR
COPY ./src $WORKDIR/src/
COPY ./resources $WORKDIR/resources/
COPY ./test $WORKDIR/test/
COPY ./project.clj $WORKDIR/project.clj
COPY .java.policy $HOME/
COPY .java.policy $WORKDIR/.java.policy
# overwrite the default location for linux
COPY .java.policy /docker-java-home/jre/lib/security/java.policy
WORKDIR $WORKDIR
RUN lein deps
VOLUME $WORKDIR/config/
VOLUME $LOGDIR
CMD ["lein", "with-profile", "+docker", "run"]
You can’t perform that action at this time.