Skip to content

Commit

Permalink
Reduce image size
Browse files Browse the repository at this point in the history
  • Loading branch information
Tresmos committed Apr 24, 2024
1 parent 98da42d commit e8fde77
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
FROM --platform=$TARGETOS/$TARGETARCH openjdk:18.0.2-slim
FROM --platform=$TARGETOS/$TARGETARCH alpine:3.19

ENV BOT_VERSION 0.4.0

RUN apt-get update -y \
&& apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoremove -y \
&& apt-get clean
RUN apk update \
&& apk upgrade \
&& apk add --update openjdk11 curl \
&& rm -rf /var/cache/apk/*

RUN mkdir -p /opt/jmusicbot/data/

ADD https://github.com/jagrosh/MusicBot/releases/download/$BOT_VERSION/JMusicBot-$BOT_VERSION.jar /opt/jmusicbot/JMusicBot.jar

COPY ./entrypoint.sh /opt/jmusicbot/entrypoint.sh

ENTRYPOINT ["/bin/sh", "/opt/jmusicbot/entrypoint.sh"]
ENTRYPOINT ["/bin/sh", "/opt/jmusicbot/entrypoint.sh"]

0 comments on commit e8fde77

Please sign in to comment.