-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de5baef
commit c2a3987
Showing
4 changed files
with
124 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM node:20 | ||
|
||
USER root | ||
|
||
RUN mkdir project | ||
WORKDIR /project | ||
|
||
COPY . /project | ||
|
||
## TODO: Are these necessary to avoid local artifacts copied inside the container? | ||
RUN rm -rf node_modules | ||
RUN rm -rf demo/node_modules | ||
RUN rm -rf demo/server/node_modules | ||
RUN rm -rf dist | ||
RUN rm -rf demo/dist | ||
|
||
# Install Lean/elan | ||
ENV ELAN_HOME=/usr/local/elan \ | ||
PATH=/usr/local/elan/bin:$PATH | ||
RUN export LEAN_VERSION="$(cat /project/demo/server/LeanProject/lean-toolchain)" && \ | ||
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --no-modify-path --default-toolchain $LEAN_VERSION; \ | ||
chmod -R a+w $ELAN_HOME; \ | ||
elan --version; \ | ||
lean --version; \ | ||
leanc --version; \ | ||
lake --version; | ||
|
||
# Install the demo project | ||
RUN npm install | ||
RUN npm run setup_demo | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters