-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
19 changed files
with
3,486 additions
and
3,920 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,12 +1,18 @@ | ||
FROM alpine | ||
|
||
COPY . /server | ||
WORKDIR server | ||
RUN ls | ||
RUN apk add cmake make g++ nodejs npm | ||
# Change some enviorment vars to make sure the build will be sucssesful | ||
ENV LD_LIBRARY_PATH=/usr/local/lib64 | ||
ENV NODE_ENV=production | ||
# install the tools required for compilation | ||
RUN apk add cmake make g++ nodejs npm | ||
# build CHttp | ||
RUN mkdir build && cd build && cmake .. && make && make install | ||
# Build the example site - the server | ||
RUN mkdir examples/build && cd examples/build && cmake .. && make | ||
# install the front-end deps and build the front end | ||
RUN cd examples/client && npm install && npm run-script build | ||
# Run the example server | ||
WORKDIR examples/build | ||
CMD ["./examples"] | ||
EXPOSE 80 |
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.