-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM gradle:jdk11
# Параметризуем имя пользователя, его Id и id группы
ARG USER_UID=1002
ARG USER_GID=1002
ARG USER=jenkins
RUN apt-get update && apt-get install tree
# Добавляем пользователя и группу
RUN groupadd --system --gid $USER_UID $USER && \
useradd --system --gid $USER --uid $USER_GID --create-home $USER
RUN mkdir /buildGradle && \
mkdir /buildGradle/.gradle &&\
chown --recursive $USER:$USER /buildGradle
COPY build/classes/kotlin/main /mainClasses
COPY build/classes/kotlin/test /testClasses
COPY build/testRuntimeClasspath /testRuntimeClasspath
COPY src/main/resources /resources
COPY src/test/resources /testResources
COPY runner /buildGradle
WORKDIR /buildGradle
ENTRYPOINT ["gradle", "integrationTest"]