ToolJet/docker/server.Dockerfile
Akshay c128d94b1d
Dev and deploy setup revision (#604)
* revise dockerfiles

* make nginx to proxy requests when static files are absent
2021-08-26 20:34:30 +05:30

24 lines
482 B
Docker

FROM node:14.17.3-buster
ENV NODE_ENV=production
# 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
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
RUN ["chmod", "755", "./entrypoint.sh"]