forked from MTG/essentia.js
-
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.
modify Dockerfile to include UI build step, include package-locks
- Loading branch information
1 parent
961a44f
commit 7d39418
Showing
6 changed files
with
4,815 additions
and
16 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,3 @@ | ||
*/node_modules | ||
*/public | ||
*/README.md |
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,7 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
*.local | ||
!package-lock.json | ||
.vscode |
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,24 +1,29 @@ | ||
FROM node:14.18.1 | ||
FROM node:14.18.1 as fe-builder | ||
|
||
WORKDIR /usr/src/app | ||
COPY views/package.json . | ||
RUN npm install | ||
|
||
# COPY . . | ||
COPY views/ . | ||
RUN npm run build | ||
|
||
RUN apt-get -y update | ||
RUN apt-get -y upgrade | ||
RUN apt-get install -y ffmpeg | ||
FROM node:14.18.1 | ||
|
||
COPY ./server ./server | ||
WORKDIR /usr/src/app/server | ||
RUN npm ci --only=production | ||
ENV PORT=8000 | ||
RUN apt-get -y update && \ | ||
apt-get install -y ffmpeg && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY ./views/dist/ ./public | ||
# WORKDIR /usr/src/app/views | ||
# RUN npm ci --only=production | ||
# RUN npm run build | ||
COPY server/package.json . | ||
|
||
RUN npm install | ||
|
||
COPY ./server/ ./ | ||
COPY --from=fe-builder /usr/src/app/dist/ ./public | ||
|
||
EXPOSE 8000 | ||
ENV PORT=8000 | ||
|
||
# WORKDIR /usr/src/app/server | ||
WORKDIR /usr/src/app | ||
CMD node server.js |
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.