From 065324dc00a190634e2f4abbb032786e610e06ef Mon Sep 17 00:00:00 2001 From: Manan Gandhi Date: Tue, 19 Nov 2024 14:16:54 +0530 Subject: [PATCH] [code-runner] Move to alpine for smaller image size --- code-runner/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code-runner/Dockerfile b/code-runner/Dockerfile index 26ccdb8..8ffeb94 100644 --- a/code-runner/Dockerfile +++ b/code-runner/Dockerfile @@ -1,11 +1,12 @@ -FROM ubuntu:latest +FROM alpine:latest WORKDIR /usr/code-runner -RUN apt update -RUN apt install gcc g++ -y -RUN apt install nodejs -y -RUN apt install python3 -y -RUN apt install default-jdk -y +RUN apk update +RUN apk add gcc g++ +RUN apk add nodejs +RUN apk add python3 +RUN apk add openjdk11 +RUN apk add bash COPY executor.py executor.py CMD ["bash"] \ No newline at end of file