effb2ca099
chore(deps): update openssl to 3.1.4-r1 See merge request Saibe1111/grafana-to-ntfy!13
18 lines
No EOL
443 B
Docker
18 lines
No EOL
443 B
Docker
FROM node:21.2.0-alpine AS build
|
|
WORKDIR /usr/src/app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:21.2.0-alpine
|
|
WORKDIR /usr/src/app
|
|
COPY package*.json ./
|
|
RUN npm install --only=production
|
|
COPY --from=build /usr/src/app/dist ./dist
|
|
|
|
RUN apk add --no-cache openssl=3.1.4-r1
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=15s \
|
|
CMD wget -qO- http://localhost:1111/health || exit 1
|
|
CMD ["npm", "start"] |