0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
posthog/plugin-server/Dockerfile
James Greenhill 434e379f9a Add 'plugin-server/' from commit '01a99a4e26b0b11f068a7073d6b94e53a7214d33'
git-subtree-dir: plugin-server
git-subtree-mainline: 776b056b6d
git-subtree-split: 01a99a4e26
2021-10-28 14:59:19 -07:00

20 lines
428 B
Docker

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