-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 1011 Bytes
/
Dockerfile
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
28
29
30
31
32
33
34
35
36
37
38
ARG IMAGE
ARG LINTER
############################################################################
# Base image
FROM $IMAGE AS base
ENV LINTER="$LINTER"
COPY entrypoint.sh /entrypoint.sh
RUN QODANA=$(which qodana) && mv "$QODANA" "${QODANA}.orig" && mv /entrypoint.sh "$QODANA"
############################################################################
# Apply linter-specific customizations
FROM base as base-jvm
FROM base as base-go
FROM base as base-js
FROM base as base-php
FROM base as base-dotnet
FROM base as base-jvm-community
FROM base as base-python-community
FROM base as base-jvm-android
FROM base as base-cdnet
FROM base as base-clang
FROM base AS base-python
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
ENV XDG_CACHE_HOME="/data/cache/cache"
ENV XDG_DATA_HOME="/data/cache/share"
ENV XDG_CONFIG_HOME="/data/cache/config"
ENV XDG_BIN_HOME="/data/cache/bin"
############################################################################
# Final image
FROM base-$LINTER