mirror of https://github.com/Lissy93/dashy.git
🍻 Run dos2unix over dockerfile in a desperate attempt to fix it
This commit is contained in:
parent
8ad600ec70
commit
c261842659
|
@ -1,31 +1,31 @@
|
||||||
FROM arm64v8/node:latest
|
FROM arm64v8/node:latest
|
||||||
|
|
||||||
# Define some ENV Vars
|
# Define some ENV Vars
|
||||||
ENV PORT 80
|
ENV PORT 80
|
||||||
ENV DIRECTORY /app
|
ENV DIRECTORY /app
|
||||||
ENV IS_DOCKER true
|
ENV IS_DOCKER true
|
||||||
|
|
||||||
# Create and set the working directory
|
# Create and set the working directory
|
||||||
WORKDIR ${DIRECTORY}
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
||||||
# 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 ./
|
COPY yarn.lock ./
|
||||||
|
|
||||||
# Install project dependencies
|
# 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 initial app for production
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# Expose given port
|
# Expose given 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
|
# 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
|
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
|
||||||
|
|
Loading…
Reference in New Issue