forked from keep-starknet-strange/shinigami
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Infra initailized with docker and kube (keep-starknet-strange#185)
<!-- enter the gh issue after hash --> - [ ] issue # - [x] follows contribution [guide](https://github.com/keep-starknet-strange/shinigami/blob/main/CONTRIBUTING.md) - [ ] code change includes tests <!-- PR description below -->
- Loading branch information
1 parent
1833214
commit 7ac264a
Showing
12 changed files
with
879 additions
and
28 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 |
---|---|---|
@@ -1,22 +1,33 @@ | ||
FROM node:20.5.0 | ||
FROM --platform=linux/amd64 node:21.7.1-alpine | ||
|
||
SHELL ["bash", "-c"] | ||
RUN apk add --no-cache bash curl git jq ncurses | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v 2.7.1 | ||
RUN curl https://get.starkli.sh | sh && \ | ||
source $HOME/.starkli/env && \ | ||
starkliup && \ | ||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1 && \ | ||
. "$HOME/.asdf/asdf.sh" && \ | ||
. "$HOME/.asdf/completions/asdf.bash" && \ | ||
asdf plugin add scarb && \ | ||
asdf install scarb latest && \ | ||
asdf global scarb latest | ||
source /root/.starkli/env && \ | ||
starkliup | ||
ENV PATH="$PATH:/root/.local/bin:/root/.starkli/bin" | ||
|
||
WORKDIR /backend | ||
WORKDIR /tests | ||
|
||
COPY ./index.js ./package.json ./ | ||
COPY ./tests/text_to_byte_array.sh ./ | ||
|
||
WORKDIR /backend | ||
|
||
COPY ./backend/package.json ./backend/package-lock.json ./ | ||
RUN npm i | ||
|
||
EXPOSE 3000 | ||
COPY ./backend ./ | ||
|
||
WORKDIR / | ||
|
||
COPY Scarb.toml Scarb.lock .tool-versions ./ | ||
COPY ./src ./src | ||
RUN scarb build | ||
|
||
WORKDIR /backend | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["node", "index.js"] | ||
CMD ["node", "index.js"] |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.