forked from near/near-wallet
-
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.
- Loading branch information
Maksym Zavershynskyi
committed
Jun 13, 2019
1 parent
523601c
commit 90da464
Showing
5 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**/.git | ||
**/node_modules | ||
dist |
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,34 @@ | ||
# syntax=docker/dockerfile-upstream:experimental | ||
|
||
FROM phusion/baseimage:0.11 | ||
|
||
ENTRYPOINT ["/sbin/my_init", "--"] | ||
|
||
RUN curl -o /tmp/node_setup.sh "https://deb.nodesource.com/setup_11.x" | ||
RUN bash /tmp/node_setup.sh | ||
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list | ||
RUN apt-get update -qq && apt-get install -y \ | ||
jq \ | ||
nodejs \ | ||
nginx \ | ||
# wallet | ||
ruby-full \ | ||
build-essential \ | ||
zlib1g-dev \ | ||
git \ | ||
rsync | ||
|
||
# near-wallet | ||
RUN mkdir /near-wallet | ||
COPY . /near-wallet/ | ||
WORKDIR /near-wallet | ||
RUN npm install | ||
RUN npm run build | ||
RUN mkdir -p /var/www/html/wallet | ||
RUN rsync -ar /near-wallet/build /var/www/html/wallet | ||
|
||
# nginx | ||
RUN rm /etc/nginx/sites-enabled/default | ||
COPY /scripts/wallet.nginx /etc/nginx/sites-enabled/wallet | ||
COPY /scripts/init_nginx.sh /etc/my_init.d/ |
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,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
/etc/init.d/nginx 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
server { | ||
root /var/www/html/wallet; | ||
} |