Skip to content

Commit

Permalink
Revert back to fat base image
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Jan 4, 2024
1 parent 522db9d commit efda6de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG APP_DIR=/app
FROM maven:3.9.5-eclipse-temurin-17-alpine as build
FROM maven:3.9.5-eclipse-temurin-17 as build
COPY . /build
RUN cd /build && mvn package

FROM eclipse-temurin:17.0.9_9-jre-alpine
FROM eclipse-temurin:17.0.8.1_1-jre
ARG APP_DIR
RUN addgroup -S appuser && \
adduser -S -G appuser appuser && \
RUN /usr/sbin/groupadd -r appuser && \
/usr/sbin/useradd --no-log-init -r -g appuser appuser && \
# Create application directory
install -o appuser -g appuser -d ${APP_DIR}
COPY --chown=appuser:appuser --from=build /build/target/ccs-scale-cat-service-*.jar ${APP_DIR}/cat.jar
Expand Down

0 comments on commit efda6de

Please sign in to comment.