mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Experimental changes to Dockerfile
This commit is contained in:
parent
2f6f9286a3
commit
f3883c6b07
2 changed files with 24 additions and 2 deletions
26
Dockerfile
26
Dockerfile
|
|
@ -1,3 +1,25 @@
|
|||
FROM tomcat:alpine
|
||||
COPY target/smeagol-*-standalone.war $CATALINA_HOME/webapps/smeagol.war
|
||||
FROM alpine:3.6
|
||||
|
||||
MAINTAINER Simon Brooke <simon@journeyman.cc>
|
||||
|
||||
ENV JAVA_HOME=/usr/lib/jvm/default-jvm
|
||||
|
||||
RUN apk add --no-cache openjdk7 && \
|
||||
ln -sf "${JAVA_HOME}/bin/"* "/usr/bin/"
|
||||
|
||||
# ensure the directories I'm going to write to actually exist!
|
||||
RUN mkdir -p /usr/local/bin
|
||||
RUN mkdir -p /usr/local/etc
|
||||
|
||||
COPY target/smeagol-*-standalone.jar /usr/local/bin/smeagol.jar
|
||||
COPY resources/passwd /usr/local/etc/passwd
|
||||
COPY resources/config.edn /usr/local/etc/config.edn
|
||||
COPY resources/pubilc/content /usr/local/etc/content
|
||||
|
||||
ENV SMEAGOL_CONFIG=/usr/local/etc/config.edn
|
||||
ENV SMEAGOL_CONTENT_DIR=/usr/local/etc/content
|
||||
ENV SMEAGOL_PASSWD=/usr/local/etc/passwd
|
||||
ENV TIMBRE_DEFAULT_STACKTRACE_FONTS="{}"
|
||||
|
||||
CMD java -jar /usr/local/bin/smeagol.jar
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue