Use docker registry and CI
This commit is contained in:
@@ -7,10 +7,10 @@ FROM eclipse-temurin:17-jdk
|
||||
WORKDIR /tmp/compile/
|
||||
COPY ./ .
|
||||
COPY --from=0 /tmp/build/dist/ ./src/main/resources/static/
|
||||
RUN ./gradlew --no-daemon build -x test
|
||||
RUN ./gradlew --no-daemon bootJar
|
||||
|
||||
FROM eclipse-temurin:17-jre
|
||||
WORKDIR /app
|
||||
RUN apt update && apt install -y libpcap0.8
|
||||
RUN apt update && apt install -y libpcap0.8 && rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=1 /tmp/compile/build/libs/packmate-*-SNAPSHOT.jar app.jar
|
||||
EXPOSE 65000
|
||||
@@ -1,14 +0,0 @@
|
||||
FROM postgres:15.1
|
||||
|
||||
ARG POSTGRES_USER
|
||||
ARG POSTGRES_PASSWORD
|
||||
ARG POSTGRES_DB
|
||||
|
||||
ENV POSTGRES_USER ${POSTGRES_USER}
|
||||
ENV POSTGRES_PASSWORD ${POSTGRES_PASSWORD}
|
||||
ENV POSTGRES_DB ${POSTGRES_DB}
|
||||
|
||||
COPY docker/postgresql.conf /tmp/postgresql.conf
|
||||
COPY docker/update_db_config.sh /docker-entrypoint-initdb.d/_update_db_config.sh
|
||||
|
||||
EXPOSE 65001
|
||||
Reference in New Issue
Block a user