mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
35023eb96c
* Add plugin server healthcheck for Docker * Fix missing comma * Clarify second FROM in Dockerfile * Fix healthStatus usage
20 lines
403 B
Docker
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" ]
|