uptime-kuma/Dockerfile

18 lines
374 B
Docker
Raw Normal View History

FROM node:16.4.2-alpine3.14
2021-07-10 23:20:31 -07:00
WORKDIR /app
COPY . .
2021-07-12 13:11:47 -07:00
RUN yarn --frozen-lockfile
RUN yarn build
#
2021-07-12 13:11:47 -07:00
FROM node:16.4.2-alpine3.14
WORKDIR /app
2021-07-10 23:20:31 -07:00
VOLUME ["/app/data"]
2021-07-12 13:11:47 -07:00
EXPOSE 50013
COPY package.json yarn.lock ./
COPY ./db /app/db
COPY ./server /app/server
RUN yarn --frozen-lockfile --prod
RUN yarn cache clean
COPY --from=0 /app/dist /app/dist
ENTRYPOINT ["node", "server/server.js"]