Skip to content

Commit

Permalink
[code-runner] Move to alpine for smaller image size
Browse files Browse the repository at this point in the history
  • Loading branch information
MananGandhi1810 committed Nov 19, 2024
1 parent 4a7cea7 commit 065324d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions code-runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM ubuntu:latest
FROM alpine:latest

WORKDIR /usr/code-runner
RUN apt update
RUN apt install gcc g++ -y
RUN apt install nodejs -y
RUN apt install python3 -y
RUN apt install default-jdk -y
RUN apk update
RUN apk add gcc g++
RUN apk add nodejs
RUN apk add python3
RUN apk add openjdk11
RUN apk add bash
COPY executor.py executor.py

CMD ["bash"]

0 comments on commit 065324d

Please sign in to comment.