-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (25 loc) · 851 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# pull from ubuntu, update all packages, and echo hello
FROM ubuntu:latest
WORKDIR /usr/src/app
ENV DEBIAN_FRONTEND noninteractive
# Update packages
RUN apt-get update && apt-get install -y \
curl \
gcc \
mono-mcs \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js and npm
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash
RUN apt-get install -y nodejs
# Install LLVM
RUN apt-get install -y llvm
# Verify installations
RUN node -v \
&& npm -v \
&& llvm-config --version
# Download a release binary from Github
COPY joelang /usr/local/bin/joelang
# RUN echo "Downloading a release binary from Github..." \
# && wget https://github.com/josephzidell/joelang/releases/download/v0.0.3.4/joelang-v0.0.3.4-node18-linux-x64 -O /usr/local/bin/joelang \
# && chmod +x /usr/local/bin/joelang
CMD joelang -i 'f main{print "Hello, World!"}'