Files
growthbook/Dockerfile
Jeremy Dorn 4648f0cbce Python stats (#20)
*  Use Python for stats back-end instead of jStat
*  Change count metrics to use a Gaussian prior instead of Gamma
*  New more robust method for calculating credible intervals
*  Expose Bayesian Risk in front-end
*  Use Violin plots instead of bar chart to show credible intervals
*  Simplify back-end build process
*  Add typescript definitions for jStat (just the methods used)
*  Better sample data and onboarding experience
2021-06-28 17:39:06 -05:00

31 lines
653 B
Docker

FROM node:14-alpine
# Install python for stats models
RUN apk add --no-cache \
python3 \
py3-numpy \
py3-scipy
WORKDIR /usr/local/src/app
# Copy only the required files
COPY . /usr/local/src/app
RUN \
# Install app with dev dependencies
yarn install --frozen-lockfile --ignore-optional \
# Build the app
&& yarn build \
# Then do a clean install with only production dependencies
&& rm -rf node_modules \
&& yarn install --frozen-lockfile --production=true --ignore-optional \
# Clear the yarn cache
&& yarn cache clean
# The front-end app (NextJS)
EXPOSE 3000
# The back-end api (Express)
EXPOSE 3100
CMD ["yarn","start"]