Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:beers: Stupid ARM image failing to build on Docker Hub

Alicia Sykes8ad600ec70ba
diff --git a/Dockerfile-arm32v7 b/Dockerfile-arm32v7
index 437d1ebf..fa6036ba 100644
--- a/Dockerfile-arm32v7
+++ b/Dockerfile-arm32v7
@@ -1,4 +1,6 @@
-FROM arm32v7/node:latest
+FROM alpine:3.8
+
+RUN apk add --no-cache nodejs yarn --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
# Define some ENV Vars
ENV PORT 80
@@ -12,20 +14,20 @@ WORKDIR ${DIRECTORY}
COPY package.json ./
COPY yarn.lock ./
-# Install dependencies
+# Install project dependencies
RUN yarn
# Copy over all project files and folders to the working directory
COPY . .
-# Build Dashy for production
+# Build initial app for production
RUN yarn build
-# Expose users port
+# Expose given port
EXPOSE ${PORT}
# Finally, run start command to serve up the built application
CMD [ "yarn", "build-and-start"]
-# Enable Docker healthcecks, to ensure Dashy is running correctly
+# Run simple healthchecks every 5 mins, to check the Dashy's everythings great
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check