ToolJet/docker/server.Dockerfile

25 lines
473 B
Text
Raw Normal View History

FROM node:14.17.3-buster
2021-08-01 09:28:48 +00:00
ENV NODE_ENV=production
2021-08-01 09:28:48 +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-08-01 09:28:48 +00:00
RUN apt update && apt install -y \
build-essential \
postgresql \
freetds-dev
RUN npm install -g @nestjs/cli
2021-08-01 09:28:48 +00:00
RUN mkdir -p /app
WORKDIR /app
# Building ToolJet server
COPY ./server/package.json ./server/package-lock.json ./
RUN npm install --only=production
COPY ./server/ ./
RUN npm run build
2021-08-01 09:28:48 +00:00
2021-09-08 18:13:17 +00:00
ENTRYPOINT ["./entrypoint.sh"]