ToolJet/docker/server.Dockerfile

25 lines
482 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
ENV NODE_OPTIONS="--max-old-space-size=2048"
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
RUN ["chmod", "755", "./entrypoint.sh"]