This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a35f4f
commit a243443
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
backend/project/utils/submissions/evaluators/general/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Use Ubuntu as the base image | ||
FROM ubuntu:latest | ||
|
||
# Avoiding user interaction with tzdata, etc. | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update and install basic dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
software-properties-common \ | ||
build-essential \ | ||
curl \ | ||
wget \ | ||
git \ | ||
cmake # Adding CMake for C/C++ project management | ||
|
||
# Install Python | ||
RUN apt-get install -y python3 python3-pip | ||
|
||
# Install Node.js | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - | ||
RUN apt-get install -y nodejs | ||
|
||
# Install Java | ||
RUN apt-get install -y openjdk-11-jdk | ||
|
||
# Install Ruby | ||
RUN apt-get install -y ruby-full | ||
|
||
# Clean up to reduce the image size | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . . |
3 changes: 3 additions & 0 deletions
3
backend/project/utils/submissions/evaluators/general/entry_point.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
bash /tests/run_test.sh |