-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.gradle/ | ||
build/ | ||
caches/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Указываем образ, от которого наследуемся | ||
FROM eclipse-temurin:20-jdk | ||
|
||
# Устанавливаем рабочую директорию | ||
WORKDIR /app | ||
|
||
# Копируем директорию из основной файловой системы внутрь образа | ||
COPY ./app . | ||
|
||
# Определяет действие, которое будет выполнено при старте контейнера (docker run) | ||
# Используется только в случае, если контейнер был запущен без указания команды | ||
# [команда, аргумент] | ||
CMD ["gradle", "run"] | ||
|
||
# Сообщаем, что контейнер использует 8000 порт | ||
EXPOSE 8080 | ||
|
||
ARG GRADLE_VERSION=8.5 | ||
|
||
RUN apt-get update && apt-get install -yq make unzip | ||
|
||
RUN wget -q https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip \ | ||
&& unzip gradle-${GRADLE_VERSION}-bin.zip \ | ||
&& rm gradle-${GRADLE_VERSION}-bin.zip | ||
|
||
ENV GRADLE_HOME=/opt/gradle | ||
|
||
RUN mv gradle-${GRADLE_VERSION} ${GRADLE_HOME} | ||
|
||
ENV PATH=$PATH:$GRADLE_HOME/bin |