Skip to content

Commit

Permalink
Switch to different base image
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Apr 5, 2024
1 parent f35586c commit 08f6947
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM eclipse-temurin:21-jre-alpine AS builder
FROM eclipse-temurin:21-jre-jammy AS builder
WORKDIR application
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract

FROM eclipse-temurin:21-jre-alpine
RUN adduser -D -u 1000 java
FROM eclipse-temurin:21-jre-jammy
RUN adduser --disabled-password -u 1000 java
WORKDIR application
COPY --chown=java:java --from=builder application/dependencies/ ./
RUN true
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ services:
ports:
- 8080:8080
environment:
- spring.profiles.active=standalone
- indexing.col-password=${COL_PASSWORD}
- indexing.col-username=${COL_USERNAME}
- indexing.col-dataset=2014
- indexing.index-location=/index-files/index
- indexing.delete-index=true
- indexing.index-at-startup=true
- indexing.temp-coldp-location=/index-files/col-temp.zip
volumes:
- /tmp:/index-files

0 comments on commit 08f6947

Please sign in to comment.