mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
@@ -1,12 +1,8 @@
|
|||||||
FROM supersonicbi/supersonic:0.9.10-SNAPSHOT
|
FROM openjdk:21-jdk-bullseye as base
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Delete old supersonic installation directory and the symbolic link
|
|
||||||
RUN rm -rf /usr/src/app/supersonic-standalone-0.9.10-SNAPSHOT
|
|
||||||
RUN rm -f /usr/src/app/supersonic-standalone-latest
|
|
||||||
|
|
||||||
# Argument to pass in the supersonic version at build time
|
# Argument to pass in the supersonic version at build time
|
||||||
ARG SUPERSONIC_VERSION
|
ARG SUPERSONIC_VERSION
|
||||||
|
|
||||||
@@ -17,6 +13,17 @@ COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip .
|
|||||||
RUN unzip supersonic-standalone-${SUPERSONIC_VERSION}.zip && \
|
RUN unzip supersonic-standalone-${SUPERSONIC_VERSION}.zip && \
|
||||||
rm supersonic-standalone-${SUPERSONIC_VERSION}.zip
|
rm supersonic-standalone-${SUPERSONIC_VERSION}.zip
|
||||||
|
|
||||||
|
FROM openjdk:21-slim
|
||||||
|
|
||||||
|
# Set the working directory in the container
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# Argument to pass in the supersonic version at build time
|
||||||
|
ARG SUPERSONIC_VERSION
|
||||||
|
|
||||||
|
# Copy the supersonic standalone folder into the container
|
||||||
|
COPY --from=base /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION} ./supersonic-standalone-${SUPERSONIC_VERSION}
|
||||||
|
|
||||||
# Create a symbolic link to the supersonic installation directory
|
# Create a symbolic link to the supersonic installation directory
|
||||||
RUN ln -s /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION} /usr/src/app/supersonic-standalone-latest
|
RUN ln -s /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION} /usr/src/app/supersonic-standalone-latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user