-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 835 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 835 Bytes
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
# syntax=docker/dockerfile:1
FROM racket/racket:8.7-full
RUN apt-get update -y --allow-releaseinfo-change \
&& apt-get install -y --no-install-recommends xz-utils make \
&& apt-get clean
RUN apt-get -y install git
WORKDIR /app
RUN curl -O https://nodejs.org/dist/v18.16.0/node-v18.16.0-linux-x64.tar.xz
RUN tar xvf node-v18.16.0-linux-x64.tar.xz -C .
ENV PATH="/app/node-v18.16.0-linux-x64/bin:${PATH}"
RUN npm install -g js-beautify
COPY . /app/racketscript-playground
RUN cd racketscript-playground && npm install
ENV PATH="/root/.local/share/racket/8.7/bin/:${PATH}"
RUN raco pkg install --auto racketscript
RUN git clone https://github.com/leiDnedyA/rackt \
&& cd rackt && git checkout cdn-import \
&& raco pkg install
WORKDIR /app/racketscript-playground
RUN make build || true
CMD ["make", "run-forever"]