Skip to content

Commit

Permalink
chore: dockerfile ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
downfa11 committed Jul 3, 2024
1 parent 6742da5 commit 94e2053
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM gradle:jdk17-alpine as builder
ARG MODULE
WORKDIR /workspace/app
COPY . /workspace/app/
RUN chmod +x gradlew

RUN ls -la /workspace/app
RUN ./gradlew build -p ${MODULE}

RUN ./gradlew build -p $MODULE
FROM openjdk:17-ea-17-slim

RUN groupadd -r appuser && useradd -r -g appuser appuser
Expand Down

0 comments on commit 94e2053

Please sign in to comment.