mirror of https://github.com/Lissy93/dashy.git
🔀 Merge pull request #306 from Lissy93/ARCH/docker-lite
[ARCH] Alpha Version of Dashy-Lite Docker Container
This commit is contained in:
commit
e2d420fd01
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 🐳 1.9.0 - Alpha of Dashy-Lite Docker Container [PR #306](https://github.com/Lissy93/dashy/pull/306)
|
||||||
|
- Create an Alpine-based container, that serves the built app up with plain NGINX, instead of Node.
|
||||||
|
- This is much lighter, but doesn't currently support any of the server-side actions (like status-checks, and writing changes to disk)
|
||||||
|
|
||||||
## ✨ 1.8.9 - All New Interactive Config Editor [PR #298](https://github.com/Lissy93/dashy/pull/298)
|
## ✨ 1.8.9 - All New Interactive Config Editor [PR #298](https://github.com/Lissy93/dashy/pull/298)
|
||||||
- Builds a new UI-based config editor
|
- Builds a new UI-based config editor
|
||||||
- Support for sections, items, app config and page info
|
- Support for sections, items, app config and page info
|
||||||
|
|
|
@ -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>"
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Dashy",
|
"name": "Dashy",
|
||||||
"version": "1.8.9",
|
"version": "1.9.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "server",
|
"main": "server",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue