Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

chore: update Dockerfile #222

Merged
merged 6 commits into from
Aug 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions connector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:7.6.0-jdk17 AS build
FROM gradle:7-jdk17-alpine AS build

ARG USERNAME
ARG TOKEN
Expand All @@ -19,17 +19,16 @@ COPY --chown=gradle:gradle . /home/gradle/project/
WORKDIR /home/gradle/project/
RUN --mount=type=cache,target=/home/gradle/.gradle/caches gradle build --no-daemon $BUILD_ARGS

# -buster is required to have apt available
FROM openjdk:17-slim-buster
FROM eclipse-temurin:17-jre-alpine

# Optional JVM arguments, such as memory settings
ARG JVM_ARGS=""

# Install curl, then delete apt indexes to save image space
RUN apt update \
&& apt install -y curl \
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists \
&& touch /emtpy-properties-file.properties
# Install curl for healthcheck
RUN apk add --no-cache curl

# Create empty properties file to avoid errors when loading properties
RUN touch /emtpy-properties-file.properties

WORKDIR /app
tmberthold marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
Loading