0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/Dockerfile
Michael Matloka 35023eb96c
Add plugin server healthcheck for Docker (#223)
* Add plugin server healthcheck for Docker

* Fix missing comma

* Clarify second FROM in Dockerfile

* Fix healthStatus usage
2021-03-01 13:43:12 +01:00

20 lines
403 B
Docker

FROM node:14 AS builder
WORKDIR /code/
COPY package.json yarn.lock .eslintrc.js .prettierrc tsconfig.json tsconfig.eslint.json ./
COPY src/idl/ src/idl/
RUN yarn install --frozen-lockfile
COPY ./ ./
RUN yarn compile:typescript
FROM node:14 AS runner
WORKDIR /code/
COPY --from=builder /code/ ./
HEALTHCHECK --start-period=10s CMD [ "node", "dist/healthcheck.js" ]
CMD [ "node", "dist/index.js" ]