ToolJet/docker/production.Dockerfile

30 lines
765 B
Text
Raw Normal View History

FROM node:14.17.3-buster
2021-07-31 08:48:56 +00:00
# Fix for JS heap limit allocation issue
2021-11-20 01:25:54 +00:00
ENV NODE_OPTIONS="--max-old-space-size=4096"
2021-07-31 08:48:56 +00:00
RUN apt update && apt install -y \
build-essential \
postgresql \
freetds-dev
RUN mkdir -p /app
WORKDIR /app
ENV NODE_ENV=production
COPY ./package.json ./package-lock.json ./
2021-07-31 08:48:56 +00:00
# Building ToolJet client
COPY ./frontend/package.json ./frontend/package-lock.json ./frontend/
RUN npm --prefix frontend install
COPY ./frontend/ ./frontend/
RUN NODE_ENV=production npm --prefix frontend run build
# Building ToolJet server
COPY ./server/package.json ./server/package-lock.json ./server/
RUN npm --prefix server install
COPY ./server/ ./server/
RUN npm install -g @nestjs/cli
RUN npm --prefix server run build
2021-09-08 18:13:17 +00:00
ENTRYPOINT ["./server/entrypoint.sh"]