mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-19 23:11:35 +03:00
🐳 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
|
||||
WORKDIR ${DIRECTORY}
|
||||
|
||||
# Install Yarn
|
||||
RUN npm install -g yarn
|
||||
# Copy over both 'package.json' and 'yarn.lock'
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
|
||||
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
||||
COPY package*.json ./
|
||||
|
||||
# Install project dependencies
|
||||
# Install dependencies
|
||||
RUN yarn
|
||||
|
||||
# Copy over all project files and folders to the working directory
|
||||
COPY . .
|
||||
|
||||
# Build initial app for production
|
||||
# Build Dashy for production
|
||||
RUN yarn build
|
||||
|
||||
# Expose given port
|
||||
# Expose users port
|
||||
EXPOSE ${PORT}
|
||||
|
||||
# Finally, run start command to serve up the built application
|
||||
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
|
||||
|
@ -8,11 +8,9 @@ ENV IS_DOCKER true
|
||||
# Create and set the working directory
|
||||
WORKDIR ${DIRECTORY}
|
||||
|
||||
# Install Yarn
|
||||
RUN npm install -g yarn
|
||||
|
||||
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
||||
COPY package*.json ./
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
|
||||
# Install project dependencies
|
||||
RUN yarn
|
||||
|
Loading…
Reference in New Issue
Block a user