-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optimized Dockerfile and a new .dockerignore file (#68)
* Create new Dockerfile to build and deploy app panel v2.1 * Optimize dockerfile * Add new dockerignore file
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 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,11 @@ | ||
.DS_Store | ||
dist/electron/* | ||
dist/web/* | ||
build/* | ||
dist/* | ||
!build/icons | ||
node_modules/ | ||
npm-debug.log | ||
npm-debug.log.* | ||
thumbs.db | ||
!.gitkeep |
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,16 @@ | ||
FROM node:8 AS build | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN npm install && \ | ||
npm run build:web | ||
|
||
FROM nginx:alpine | ||
|
||
COPY --from=build --chown=nginx:nginx /app/dist/web /usr/share/nginx/html | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |