Comments (6)
This is mine :) running on k3s on Raspberrypi 4
FROM phntxx/dashboard as builder
FROM nginxinc/nginx-unprivileged:alpine
COPY --from=builder /app /usr/share/nginx/html
With
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: dashboard
app.kubernetes.io/part-of: dashboard
name: dashboard
namespace: dashboard
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: dashboard
app.kubernetes.io/part-of: dashboard
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/name: dashboard
app.kubernetes.io/part-of: dashboard
spec:
containers:
- image: rg.fr-par.scw.cloud/cc2b5a5b-09f9-4378-afd3-badc4b2865ac/phntxx/dashboard:latest
name: dashboard
ports:
- containerPort: 8080
name: http
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- mountPath: /usr/share/nginx/html/data
name: config
readOnly: true
restartPolicy: Always
volumes:
- configMap: # contains the JSON files, autogenerated with kustomize from a yaml file (more readable)
name: config-562662tg42
name: config
from dashboard.
This is mine :) running on k3s on Raspberrypi 4
FROM phntxx/dashboard as builder FROM nginxinc/nginx-unprivileged:alpine COPY --from=builder /app /usr/share/nginx/html
Ah, so simple! Thanks!
from dashboard.
I'd rather say "optimized" 😋
from dashboard.
While I do like making this available out of the box, I struggle doing so.
I've managed getting multiarch images for ratisbonacoding/nginx-cloudflare-cache
built yesterday.
The issue I'm facing lies within the fact that the node:lts
image is used for building, followed by the ratisbonacoding/nginx-cloudflare-cache
image, which is based on nginxinc/nginx-unprivileged:alpine
.
If anyone here has expertise with docker buildx and knows how to help me out with the following, I'd really appreciate your input:
If we look at the Dockerfile for this project:
FROM node:lts AS build
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . ./
RUN yarn build
FROM ratisbonacoding/nginx-cloudflare-cache
COPY --from=build /app/build /app
COPY nginx.conf /etc/nginx/nginx.conf
I'd like everything until RUN yarn build
to run on one platform and everything after to be built for multiple architectures.
from dashboard.
Hello. You can do this with this Dockerfile :) This will only be available throught docker buildx build
.
-FROM node:lts AS build
+FROM --platform=$TARGETPLATFORM node:lts AS build
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . ./
RUN yarn build
-FROM ratisbonacoding/nginx-cloudflare-cache
+FROM --platform=$TARGETPLATFORM ratisbonacoding/nginx-cloudflare-cache
COPY --from=build /app/build /app
COPY nginx.conf /etc/nginx/nginx.conf
Then. It should work
docker buildx create --name builder --use
docker buildx build --plateform linux/amd64,linux/arm/v7 --push --tag docker.io/phntxx/dashboard
EDIT: I think the --platform=$TARGETPLATFORM
is optionnal here, you can try both
https://docs.docker.com/buildx/working-with-buildx/
from dashboard.
I've recently discovered that my buildx configuration works, so there should now be an ARM image of this project available on Docker.
Closing.
from dashboard.
Related Issues (20)
- Can't use any port other than 8080 HOT 1
- Light theme is always set for new visitor HOT 2
- Option to be using MDI icons
- Add Custom css Support HOT 1
- Using the search bar results in a 404 HOT 1
- themes.json greeter.json - Required, not documented, not in Docker image
- Showing blank screen on intial run HOT 2
- Change icon size?
- How to remove [About] > Imprint section ?
- Multi-tenant
- README.md manual installation update
- Local Weather?
- Gitter done HOT 1
- You need to enable JavaScript to run this app. HOT 2
- qahl
- Hi
- H
- Outside access via nginx reverse proxy HOT 1
- Make API call with buttons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashboard.