Skip to content
Snippets Groups Projects
Dockerfile 668 B
Newer Older
Griefed's avatar
Griefed committed
FROM lsiobase/alpine:3.12
Griefed's avatar
Griefed committed

LABEL maintainer="Griefed <griefed@griefed.de>"

Griefed's avatar
Griefed committed
ARG BOT_VERSION=1.2.3

Griefed's avatar
Griefed committed
RUN \
  echo "**** install dependencies and build tools and stuff ****" && \
  apk add --no-cache \
Griefed's avatar
Griefed committed
    curl && \
  echo "**** prepare environment ****" && \
    mkdir -p \
      /app/curseforgebot && \
  echo "**** installing application ****" && \
    curl -o \
      /app/curseforgebot/curseforgebot.jar -L \
Griefed's avatar
Griefed committed
        "https://github.com/ErdbeerbaerLP/Curseforge-Bot/releases/download/${BOT_VERSION}/Curseforge-Bot-${BOT_VERSION}.jar" && \
Griefed's avatar
Griefed committed
  echo "**** Cleanup ****" && \
    rm -rf \
      /root/.cache \
      /tmp/*
Griefed's avatar
Griefed committed

Griefed's avatar
Griefed committed
COPY root/ /
Griefed's avatar
Griefed committed

Griefed's avatar
Griefed committed
VOLUME /config