This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Showing
67 changed files
with
2,172 additions
and
934 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 |
---|---|---|
@@ -1,14 +1,32 @@ | ||
FROM ubuntu:xenial | ||
|
||
# Update apt and install wget | ||
RUN apt-get update && apt-get install -y wget curl apt-utils | ||
# Project directory | ||
WORKDIR /src/blockstack-browser | ||
|
||
# Add blockstack apt repo | ||
RUN wget -qO - https://raw.githubusercontent.com/blockstack/packaging/master/repo-key.pub | apt-key add - | ||
RUN echo 'deb http://packages.blockstack.com/repositories/ubuntu/ xenial main' > /etc/apt/sources.list.d/blockstack.list | ||
# Update apt and install wget | ||
RUN apt-get update && apt-get install -y wget curl apt-utils git | ||
|
||
# Install node | ||
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | ||
RUN apt-get update && apt-get install -y nodejs | ||
|
||
# Install cors-proxy | ||
RUN npm install -g corsproxy | ||
|
||
# Alias the cors-proxy | ||
RUN ln /usr/bin/corsproxy /usr/bin/blockstack-cors-proxy | ||
|
||
# Copy files into container | ||
COPY . . | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Build production assets | ||
RUN /src/blockstack-browser/node_modules/.bin/gulp prod | ||
|
||
# Install blockstack-browser | ||
RUN apt-get update && apt-get install -y blockstack-browser | ||
# Setup script to run browser | ||
RUN echo '#!/bin/bash' >> /src/blockstack-browser/blockstack-browser | ||
RUN echo 'node /src/blockstack-browser/native/blockstackProxy.js 8888 /src/blockstack-browser/build' >> /src/blockstack-browser/blockstack-browser | ||
RUN chmod +x /src/blockstack-browser/blockstack-browser | ||
RUN ln /src/blockstack-browser/blockstack-browser /usr/bin/blockstack-browser |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.