We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 421a251 + fe24a94 commit 161d117Copy full SHA for 161d117
backend/code-execution-service/Dockerfile
@@ -1,29 +1,27 @@
1
FROM golang:1.23-alpine
2
3
-# Set non-interactive mode for apt-get
+
4
ENV DEBIAN_FRONTEND=noninteractive
5
6
-# Install additional required packages
7
RUN apk add --no-cache \
8
python3 \
9
gcc \
10
g++ \
11
openjdk11 \
12
- bash
+ bash \
+ rust \
13
+ cargo
14
15
-# Check if javac is installed
16
RUN javac -version || echo "javac not found"
17
18
WORKDIR /app
19
-# Copy go.mod and main.go to download dependencies
20
COPY go.mod main.go ./
21
RUN go mod download
22
23
-# Copy the rest of the application code
24
COPY . .
25
26
-# Build the Go application
27
RUN go build -o code-execution-service .
28
29
EXPOSE 8081
0 commit comments