-
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
5 changed files
with
56 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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/bin/sh | ||
|
||
nginx | ||
|
||
# Run Node | ||
cd /opt/backend && node src/Application.js | ||
cd /opt && node src/Application.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
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,26 @@ | ||
FROM node:alpine as build | ||
|
||
WORKDIR /build | ||
COPY package*.json ./ | ||
RUN npm install && npm install typescript -g | ||
COPY . . | ||
RUN npm run frontend:build | ||
|
||
|
||
FROM nginx:alpine | ||
|
||
WORKDIR /opt | ||
|
||
COPY package*.json ./ | ||
|
||
RUN apk update && apk add --update nodejs npm | ||
RUN npm install --quiet --unsafe-perm --no-progress --no-audit | ||
|
||
COPY --from=build /build/_build/frontend /opt/ | ||
|
||
COPY .docker/default.conf /etc/nginx/conf.d/default.conf | ||
|
||
EXPOSE 80 | ||
STOPSIGNAL SIGQUIT | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |