Skip to content

Commit 161d117

Browse files
authored
Merge pull request #3 from slashexx/preview
Updated rust in the VM 💯
2 parents 421a251 + fe24a94 commit 161d117

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

backend/code-execution-service/Dockerfile

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
11
FROM golang:1.23-alpine
22

3-
# Set non-interactive mode for apt-get
3+
44
ENV DEBIAN_FRONTEND=noninteractive
55

6-
# Install additional required packages
76
RUN apk add --no-cache \
87
python3 \
98
gcc \
109
g++ \
1110
openjdk11 \
12-
bash
11+
bash \
12+
rust \
13+
cargo
14+
1315

14-
# Check if javac is installed
1516
RUN javac -version || echo "javac not found"
1617

1718
WORKDIR /app
1819

19-
# Copy go.mod and main.go to download dependencies
2020
COPY go.mod main.go ./
2121
RUN go mod download
2222

23-
# Copy the rest of the application code
2423
COPY . .
2524

26-
# Build the Go application
2725
RUN go build -o code-execution-service .
2826

2927
EXPOSE 8081

0 commit comments

Comments
 (0)