remove k8s configs, update worker for multi-languages support, add local-submit option
This commit is contained in:
@@ -24,16 +24,44 @@ FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./LiquidCode.Tester.Worker.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
# Final stage - use aspnet runtime with C++ compiler
|
||||
# Final stage - use aspnet runtime with all compilers
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final
|
||||
WORKDIR /app
|
||||
|
||||
# Install C++ compiler and build tools
|
||||
# Install compilers and runtimes for all supported languages
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
# C++ compiler and build tools
|
||||
g++ \
|
||||
gcc \
|
||||
make \
|
||||
# Java Development Kit and Runtime
|
||||
openjdk-17-jdk \
|
||||
# Python
|
||||
python3 \
|
||||
python3-pip \
|
||||
# Kotlin compiler
|
||||
wget \
|
||||
unzip \
|
||||
&& wget -q https://github.com/JetBrains/kotlin/releases/download/v1.9.20/kotlin-compiler-1.9.20.zip -O /tmp/kotlin.zip \
|
||||
&& unzip -q /tmp/kotlin.zip -d /opt \
|
||||
&& rm /tmp/kotlin.zip \
|
||||
&& ln -s /opt/kotlinc/bin/kotlinc /usr/local/bin/kotlinc \
|
||||
&& ln -s /opt/kotlinc/bin/kotlin /usr/local/bin/kotlin \
|
||||
# Cleanup
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Mono for C# compilation (csc)
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gnupg \
|
||||
&& gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
|
||||
&& echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends mono-devel \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy published app
|
||||
|
||||
Reference in New Issue
Block a user