mirror of https://github.com/zlatinb/muwire
parent
0e0f52bc77
commit
c3723a1348
18
Dockerfile
18
Dockerfile
|
@ -15,23 +15,22 @@ WORKDIR /$TMP_DIR
|
||||||
# Put sources into dir
|
# Put sources into dir
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install dependencies.
|
# Install final dependencies
|
||||||
RUN apk add --no-cache openjdk${JDK}-jdk openjdk${JDK}-jre
|
RUN apk add --no-cache openjdk${JDK}-jre
|
||||||
|
|
||||||
# Build and untar in future distribution dir
|
# Build and untar in future distribution dir
|
||||||
RUN ./gradlew --no-daemon clean assemble \
|
RUN apk add --no-cache openjdk${JDK}-jdk \
|
||||||
|
&& ./gradlew --no-daemon clean assemble \
|
||||||
&& mkdir -p ${APP_HOME} \
|
&& mkdir -p ${APP_HOME} \
|
||||||
# Extract to ${APP_HOME and ignore the first dir
|
# Extract to ${APP_HOME and ignore the first dir
|
||||||
# First dir in tar is the "MuWire-<version>"
|
# First dir in tar is the "MuWire-<version>"
|
||||||
&& tar -C ${APP_HOME} --strip 1 -xvf gui/build/distributions/MuWire*.tar
|
&& tar -C ${APP_HOME} --strip 1 -xvf gui/build/distributions/MuWire*.tar \
|
||||||
|
# Cleanup
|
||||||
|
&& rm -rf "${TMP_DIR}" /root/.gradle /root/.java \
|
||||||
|
&& apk del openjdk${JDK}-jdk
|
||||||
|
|
||||||
WORKDIR ${APP_HOME}
|
WORKDIR ${APP_HOME}
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
RUN rm -rf ${TMP_DIR} /root/.gradle /root/.java
|
|
||||||
# Leave only the JRE
|
|
||||||
RUN apk del openjdk${JDK}-jdk
|
|
||||||
|
|
||||||
# Maximize only the main/initial window.
|
# Maximize only the main/initial window.
|
||||||
RUN \
|
RUN \
|
||||||
sed-patch 's/<application type="normal">/<application type="normal" title="MuWire">/' \
|
sed-patch 's/<application type="normal">/<application type="normal" title="MuWire">/' \
|
||||||
|
@ -44,7 +43,6 @@ RUN \
|
||||||
|
|
||||||
# Add files.
|
# Add files.
|
||||||
COPY docker/rootfs/ /
|
COPY docker/rootfs/ /
|
||||||
RUN chmod +x /startapp.sh
|
|
||||||
|
|
||||||
# Set environment variables.
|
# Set environment variables.
|
||||||
ENV APP_NAME="MuWire" \
|
ENV APP_NAME="MuWire" \
|
||||||
|
|
Loading…
Reference in New Issue