~jae/neos-metrics-exporter

1b73aa107b99f5aaaaa20b2332398296ef246409 — Jae Salokettu (J4) 1 year, 1 month ago ac5c490
Dockerfile: add production Dockerfile
1 files changed, 15 insertions(+), 0 deletions(-)

A Dockerfile
A Dockerfile => Dockerfile +15 -0
@@ 0,0 1,15 @@
FROM node:16 as builder
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn
COPY . ./
RUN yarn build

FROM node:lts-alpine AS runner

COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/build /app/build

EXPOSE 3001

CMD ["node", "/app/build/index.js"]
\ No newline at end of file