Skip to content

Commit

Permalink
[InstructorUI] Add docker image for CSCI 4210 (#19)
Browse files Browse the repository at this point in the history
* Add CSCI 4210

* Add java home

---------

Co-authored-by: Chris Reed <[email protected]>
  • Loading branch information
bmcutler and cjreed121 authored Feb 27, 2024
1 parent 87468ae commit c04ce08
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockerfiles/csci4210/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pushLatest": false
}
21 changes: 21 additions & 0 deletions dockerfiles/csci4210/ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:22.04

# Install python3
RUN apt-get update \
&& apt-get -y --no-install-recommends install python3 \
&& rm -rf /var/lib/apt/lists/*

# Install Java 21
RUN apt-get update \
&& apt-get -y --no-install-recommends install openjdk-21-jdk \
&& rm -rf /var/lib/apt/lists/*

# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-21-openjdk-amd64/
RUN export JAVA_HOME

# Install C/C++
RUN apt-get update \
&& apt-get -y --no-install-recommends install gcc g++ \
&& rm -rf /var/lib/apt/lists/*

0 comments on commit c04ce08

Please sign in to comment.