Use docker registry and CI

This commit is contained in:
Sergey
2023-04-10 18:38:19 +00:00
parent 88b80d1ba3
commit 6a53c1aa67
4 changed files with 44 additions and 31 deletions

View File

@@ -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

View File

@@ -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