mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
(fix)(docker)Fix Dockerfile.
(fix)(docker)Fix Dockerfile.
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
# Use an official OpenJDK runtime as a parent image
|
FROM supersonicbi/supersonic:0.9.10-SNAPSHOT
|
||||||
FROM openjdk:21-jdk-bullseye
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ spring:
|
|||||||
url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/${DB_NAME}?stringtype=unspecified
|
url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/${DB_NAME}?stringtype=unspecified
|
||||||
username: ${DB_USERNAME}
|
username: ${DB_USERNAME}
|
||||||
password: ${DB_PASSWORD}
|
password: ${DB_PASSWORD}
|
||||||
|
|
||||||
sql:
|
sql:
|
||||||
init:
|
init:
|
||||||
|
continue-on-error: true
|
||||||
mode: always
|
mode: always
|
||||||
username: ${DB_USERNAME}
|
username: ${DB_USERNAME}
|
||||||
password: ${DB_PASSWORD}
|
password: ${DB_PASSWORD}
|
||||||
|
|||||||
Reference in New Issue
Block a user