-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge pull request #306 from Lissy93/ARCH/docker-lite
[ARCH] Alpha Version of Dashy-Lite Docker Container
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
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,22 @@ | ||
# ----------------------------------------------------------------------------------------- | ||
# A light-weight alternative Docker image, using NGINX rather than Node.js to serve the app | ||
# This means that certain features that require server-side endpoints will not be available | ||
# ----------------------------------------------------------------------------------------- | ||
|
||
# Build Stage - Install dependencies + build the app | ||
FROM node:lts-alpine3.14 as build | ||
WORKDIR /dashy | ||
COPY package*.json . | ||
COPY yarn.lock . | ||
RUN yarn | ||
COPY . . | ||
RUN yarn build | ||
|
||
# Production Stage - Serve up built files with NGINX | ||
FROM nginx:alpine as production | ||
COPY ./docker/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=build /dashy/dist /usr/share/nginx/html | ||
EXPOSE 80 | ||
ENTRYPOINT ["nginx", "-g", "daemon off;"] | ||
|
||
LABEL maintainer="Alicia Sykes <alicia@omg.lol>" |
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,15 @@ | ||
worker_processes 4; | ||
|
||
events { worker_connections 1024; } | ||
|
||
http { | ||
server { | ||
listen 80; | ||
root /usr/share/nginx/html; | ||
include /etc/nginx/mime.types; | ||
|
||
location /appui { | ||
try_files $uri /index.html; | ||
} | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"name": "Dashy", | ||
"version": "1.8.9", | ||
"version": "1.9.0", | ||
"license": "MIT", | ||
"main": "server", | ||
"scripts": { | ||
|