Skip to content

Commit

Permalink
Remove yq
Browse files Browse the repository at this point in the history
  • Loading branch information
Laica-Lunasys committed Jul 22, 2024
1 parent 819101e commit 6d0c54e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions velocity/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ COPY utils/velocity.sh /velocity/
# Download tools
WORKDIR /tmp
RUN wget -O packy.tar.gz https://github.com/synchthia/packy/releases/latest/download/packy_${TARGETOS}_${TARGETARCH}.tar.gz && \
tar -xvzf ./packy.tar.gz && \
wget -O yq https://github.com/mikefarah/yq/releases/latest/download/yq_${TARGETOS}_${TARGETARCH} && \
chmod +x yq
tar -xvzf ./packy.tar.gz

# Download velocity
WORKDIR /velocity
Expand All @@ -25,14 +23,14 @@ RUN sh /velocity/velocity.sh ${VELOCITY_VERSION}
FROM docker.io/eclipse-temurin:21
EXPOSE 25565

ENV LANG en_US.UTF-8
ENV LANG=en_US.UTF-8

# Config
ENV ONLINE_MODE true
ENV PORT 25565
ENV ONLINE_MODE=true
ENV PORT=25565

# Install assets
COPY --from=download_assets /tmp/packy /tmp/yq /usr/local/bin/
COPY --from=download_assets /tmp/packy /usr/local/bin/

# Install velocity
COPY --from=download_assets /velocity/velocity.jar /velocity/
Expand Down

0 comments on commit 6d0c54e

Please sign in to comment.