From fe24a949ea1bdb492baa62fc89f0d9f0e918e889 Mon Sep 17 00:00:00 2001 From: slashexx Date: Sun, 10 Nov 2024 19:08:49 +0000 Subject: [PATCH] Updated rust in the VM --- backend/code-execution-service/Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/backend/code-execution-service/Dockerfile b/backend/code-execution-service/Dockerfile index 714757a..dfde0b2 100644 --- a/backend/code-execution-service/Dockerfile +++ b/backend/code-execution-service/Dockerfile @@ -1,29 +1,27 @@ FROM golang:1.23-alpine -# Set non-interactive mode for apt-get + ENV DEBIAN_FRONTEND=noninteractive -# Install additional required packages RUN apk add --no-cache \ python3 \ gcc \ g++ \ openjdk11 \ - bash + bash \ + rust \ + cargo + -# Check if javac is installed RUN javac -version || echo "javac not found" WORKDIR /app -# Copy go.mod and main.go to download dependencies COPY go.mod main.go ./ RUN go mod download -# Copy the rest of the application code COPY . . -# Build the Go application RUN go build -o code-execution-service . EXPOSE 8081