mirror of https://github.com/Lissy93/dashy.git
🐳 Fixes Docker images for ARM-based devices
This commit is contained in:
parent
0e23fdc16c
commit
9e3d728768
|
@ -8,26 +8,24 @@ ENV IS_DOCKER true
|
||||||
# Create and set the working directory
|
# Create and set the working directory
|
||||||
WORKDIR ${DIRECTORY}
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
||||||
# Install Yarn
|
# Copy over both 'package.json' and 'yarn.lock'
|
||||||
RUN npm install -g yarn
|
COPY package.json ./
|
||||||
|
COPY yarn.lock ./
|
||||||
|
|
||||||
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
# Install dependencies
|
||||||
COPY package*.json ./
|
|
||||||
|
|
||||||
# Install project dependencies
|
|
||||||
RUN yarn
|
RUN yarn
|
||||||
|
|
||||||
# Copy over all project files and folders to the working directory
|
# Copy over all project files and folders to the working directory
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build initial app for production
|
# Build Dashy for production
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# Expose given port
|
# Expose users port
|
||||||
EXPOSE ${PORT}
|
EXPOSE ${PORT}
|
||||||
|
|
||||||
# Finally, run start command to serve up the built application
|
# Finally, run start command to serve up the built application
|
||||||
CMD [ "yarn", "build-and-start"]
|
CMD [ "yarn", "build-and-start"]
|
||||||
|
|
||||||
# Run simple healthchecks every 5 mins, to check the Dashy's everythings great
|
# Enable Docker healthcecks, to ensure Dashy is running correctly
|
||||||
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
|
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
|
||||||
|
|
|
@ -8,11 +8,9 @@ ENV IS_DOCKER true
|
||||||
# Create and set the working directory
|
# Create and set the working directory
|
||||||
WORKDIR ${DIRECTORY}
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
||||||
# Install Yarn
|
|
||||||
RUN npm install -g yarn
|
|
||||||
|
|
||||||
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
||||||
COPY package*.json ./
|
COPY package.json ./
|
||||||
|
COPY yarn.lock ./
|
||||||
|
|
||||||
# Install project dependencies
|
# Install project dependencies
|
||||||
RUN yarn
|
RUN yarn
|
||||||
|
|
Loading…
Reference in New Issue