Skip to content

Commit 19cd114

Browse files
committed
Heroku
1 parent 471b90c commit 19cd114

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

Dockerfile

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
# syntax=docker/dockerfile:1
2-
FROM racket/racket:8.1-full
2+
FROM ubuntu:rolling
3+
4+
WORKDIR /root
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
RUN apt update
7+
RUN apt install -y software-properties-common curl build-essential git
8+
RUN add-apt-repository -y ppa:plt/racket
9+
RUN apt update
10+
RUN apt install -y racket
311

4-
WORKDIR /app
512
RUN curl -O https://nodejs.org/dist/v14.17.1/node-v14.17.1-linux-x64.tar.xz
613
RUN tar xvf node-v14.17.1-linux-x64.tar.xz -C .
7-
ENV PATH="/app/node-v14.17.1-linux-x64/bin:${PATH}"
14+
ENV PATH="/root/node-v14.17.1-linux-x64/bin:${PATH}"
815
RUN npm install -g js-beautify
916

10-
COPY . /app/racketscript-playground
11-
ENV PATH="/root/.local/share/racket/8.1/bin/:${PATH}"
12-
RUN raco pkg install --auto racketscript
17+
RUN raco setup --doc-index --force-user-docs
18+
RUN git clone https://github.com/vishesh/racketscript.git
19+
WORKDIR /root/racketscript
20+
RUN make setup
21+
22+
COPY . /root/racketscript-playground
23+
ENV PATH="/root/racketscript/racketscript-compiler/bin/:${PATH}"
1324

14-
WORKDIR /app/racketscript-playground
25+
WORKDIR /root/racketscript-playground
1526
RUN make build || true
1627
CMD ["make", "run-forever"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ build/server: app.rkt | node_modules
3838
node_modules: package.json package-lock.json
3939
npm install && touch node_modules
4040

41-
build/client: client.rkt | build/runtime build/examples
41+
build/client: client.rkt | build/runtime
4242
@echo "Compiling the client..."
4343
racks $(RACKS_FLAGS) $(RACKS_ARGS) $(RACKS_APP_FLAGS) -d build/client --target webpack client.rkt
4444
./build/client/node_modules/.bin/webpack --config ./build/client/webpack.config.js --entry ./build/client/modules/client.rkt.js --output-path ./build/client/dist

heroku.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build:
2+
docker:
3+
web: Dockerfile
4+
run:
5+
web: make run-forever

0 commit comments

Comments
 (0)