-
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
Showing
3 changed files
with
18 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/examples/nft/node_modules/ | ||
/examples/nft/.svelte-kit/ |
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,15 +1,15 @@ | ||
# Stage 1 - the build process | ||
FROM node:16 as build-deps | ||
FROM node:16-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
RUN npm install | ||
|
||
COPY . ./ | ||
RUN npm run build | ||
|
||
# Stage 2 - the production environment | ||
FROM node:16-alpine | ||
WORKDIR /usr/src/app | ||
COPY --from=build-deps /usr/src/app . | ||
RUN npm run build | ||
RUN npm install -g serve | ||
EXPOSE 8000 | ||
CMD ["serve", "-s", "build", "-l", "8000"] | ||
|
||
EXPOSE 5173 | ||
|
||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"] |