Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated rust in the VM 💯 #3

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions backend/code-execution-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading