-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile for building the website (#699)
* Add Dockerfile for building the website This Dockerfile was taken from spaCy. * README: Remove command substitution in example
- Loading branch information
Showing
2 changed files
with
40 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,16 @@ | ||
FROM node:11.15.0 | ||
|
||
WORKDIR /thinc-io | ||
|
||
RUN npm install -g gatsby-cli@2.7.4 | ||
|
||
COPY package.json . | ||
COPY package-lock.json . | ||
|
||
RUN npm install | ||
|
||
# This is so the installed node_modules will be up one directory | ||
# from where a user mounts files, so that they don't accidentally mount | ||
# their own node_modules from a different build | ||
# https://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders | ||
WORKDIR /thinc-io/website/ |
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