-
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.
chore: divide Dockerfile into smaller pieces
- Loading branch information
Showing
9 changed files
with
204 additions
and
40 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,3 @@ | ||
FROM node:20-alpine | ||
RUN npm install pm2 -g | ||
CMD ["pm2-runtime", "./dist/index.js"] |
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,2 @@ | ||
FROM node:20-alpine | ||
RUN npm install -g pnpm serve |
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,25 +1,21 @@ | ||
# Full python toolset for ease of development | ||
# If you need something smaller, you can use ubuntu slim or alpine without python | ||
FROM node:20-bullseye | ||
|
||
# This tools are not needed but are helpful for debugging | ||
RUN apt-get update -y | ||
RUN apt-get install -y build-essential net-tools iputils-ping curl vim git wget unzip jq dnsutils tcpdump | ||
RUN npm install -g pnpm serve pm2 | ||
# FROM scratch | ||
# COPY curl /curl | ||
# ENTRYPOINT ["/curl"] | ||
|
||
# Download official installer | ||
RUN curl -L https://join.golem.network/as-requestor --output as-requestor.sh | ||
RUN chmod +x as-requestor.sh | ||
# # Download official installer | ||
# RUN curl -L https://join.golem.network/as-requestor --output as-requestor.sh | ||
# RUN chmod +x as-requestor.sh | ||
|
||
# Installer is checking if binaries in in this PATH, so we need to add it beforehand | ||
ENV PATH="${PATH}:/root/.local/bin" | ||
# # Installer is checking if binaries in in this PATH, so we need to add it beforehand | ||
# ENV PATH="${PATH}:/root/.local/bin" | ||
|
||
# switch to any yagna version if necessery | ||
ARG YAGNA_VERSION | ||
|
||
# yagna installator normally asks for user input, so we need to set some environment variables to avoid that | ||
RUN GOLEM_ACCEPT_TOS=yes BATCH_MODE=yes YA_INSTALLER_CORE=${YAGNA_VERSION} ./as-requestor.sh | ||
# # switch to any yagna version if necessery | ||
# ARG YAGNA_VERSION | ||
|
||
# # yagna installator normally asks for user input, so we need to set some environment variables to avoid that | ||
# RUN GOLEM_ACCEPT_TOS=yes BATCH_MODE=yes YA_INSTALLER_CORE=${YAGNA_VERSION} ./as-requestor.sh | ||
|
||
|
||
|
||
FROM golemfactory/requestor:0.15.0 |
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,2 +1 @@ | ||
VITE_BACKEND_URL=http://127.0.0.1:5174 | ||
VITE_REQUESTOR_WALLET_ADDRESS=0x2df23cf840a1149646c7eaa426b493db808d31af |
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 @@ | ||
VITE_BACKEND_URL=http://0.0.0.0:5174 |
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.