-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: serve interface using a nodejs server (#48)
fix: allow program to compile by fixing syntaxe error feat: build the interface on docker start feat: start nodejs server feat: serve node server through ngnix
- Loading branch information
Showing
5 changed files
with
31 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
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,18 @@ | ||
FROM node:20.12.2-alpine3.19 as base | ||
|
||
# node 20, build the application | ||
FROM base | ||
WORKDIR /app | ||
COPY ../nextjs-interface . | ||
COPY ../.env . | ||
RUN npm install | ||
RUN node_modules/.bin/next build | ||
|
||
# serve the application | ||
FROM base | ||
WORKDIR /var/www/memoires-info/html | ||
COPY --from=1 /app/out ./out | ||
COPY --from=1 /app/node_modules/ ./node_modules/ | ||
COPY --from=1 /app/next.config.mjs . | ||
CMD ["node_modules/.bin/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