-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from CameraKit/develop
Release v3.1.0
- Loading branch information
Showing
6 changed files
with
102 additions
and
45 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 |
---|---|---|
|
@@ -41,3 +41,4 @@ jspm_packages | |
|
||
# Distribution | ||
dist | ||
build |
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,19 +1,32 @@ | ||
FROM node:alpine | ||
# Use a Node.js image and assign it as our build | ||
FROM mhart/alpine-node:10 as build | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# Install app dependencies | ||
COPY package.json /usr/src/app/ | ||
# Set the working directory, copy dependency management files to the working directory, | ||
# and install the dependencies | ||
WORKDIR /usr/src | ||
COPY package.json yarn.lock ./ | ||
RUN yarn install | ||
|
||
# Bundle app source | ||
COPY . /usr/src/app | ||
RUN yarn run build | ||
# Copy all files to the working directly, build the application | ||
# and purge the development dependencies | ||
COPY . . | ||
RUN yarn build && yarn --production | ||
|
||
# Create a new image using a minimal Node.js image | ||
# with no extra tools packaged in, such as Yarn or npm for the smallest final size | ||
FROM mhart/alpine-node:base-10 | ||
|
||
# Set the working directory for the new image and | ||
# set the `NODE_ENV` environment variable value to `production` | ||
# along with setting the path for node_modules to be accessible | ||
WORKDIR /usr/src | ||
ENV NODE_ENV="production" | ||
ENV PATH="./node_modules/.bin:$PATH" | ||
|
||
# Copy files from the base image over to our new image's working directory | ||
COPY --from=build /usr/src . | ||
|
||
# Set the default host/port | ||
ENV HOST 0.0.0.0 | ||
ENV PORT 8080 | ||
EXPOSE 3000 | ||
|
||
CMD [ "yarn", "start" ] | ||
# Start the server for Next.js using Node.js | ||
CMD ["next", "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
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
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 |
---|---|---|
|
@@ -552,6 +552,12 @@ | |
core-js "^2.5.3" | ||
regenerator-runtime "^0.11.1" | ||
|
||
"@babel/runtime@^7.0.0": | ||
version "7.0.0" | ||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0.tgz#adeb78fedfc855aa05bc041640f3f6f98e85424c" | ||
dependencies: | ||
regenerator-runtime "^0.12.0" | ||
|
||
"@babel/[email protected]": | ||
version "7.0.0-beta.42" | ||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.42.tgz#7186d4e70d44cdec975049ba0a73bdaf5cdee052" | ||
|
@@ -5824,6 +5830,12 @@ react-side-effect@^1.1.0: | |
exenv "^1.2.1" | ||
shallowequal "^1.0.1" | ||
|
||
react-spring@^5.8.0: | ||
version "5.8.0" | ||
resolved "https://registry.yarnpkg.com/react-spring/-/react-spring-5.8.0.tgz#52d8206487692b99c223377c252acea645d77307" | ||
dependencies: | ||
"@babel/runtime" "^7.0.0" | ||
|
||
react@^16.4.2: | ||
version "16.4.2" | ||
resolved "https://registry.yarnpkg.com/react/-/react-16.4.2.tgz#2cd90154e3a9d9dd8da2991149fdca3c260e129f" | ||
|
@@ -5941,6 +5953,10 @@ regenerator-runtime@^0.11.0, regenerator-runtime@^0.11.1: | |
version "0.11.1" | ||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" | ||
|
||
regenerator-runtime@^0.12.0: | ||
version "0.12.1" | ||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz#fa1a71544764c036f8c49b13a08b2594c9f8a0de" | ||
|
||
regenerator-transform@^0.10.0: | ||
version "0.10.1" | ||
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" | ||
|