ToolJet/docker/client.Dockerfile.dev
2022-11-28 10:59:31 +05:30

27 lines
590 B
Text

# pull official base image
FROM node:14.17.3-buster
ENV NODE_ENV=development
RUN npm i -g npm@7.20.0
# set working directory
WORKDIR /app
COPY ./package.json ./package.json
# add `/app/frontend/node_modules/.bin` to $PATH
ENV PATH /app/frontend/node_modules/.bin:$PATH
# Fix for heap limit allocation issue
ENV NODE_OPTIONS="--max-old-space-size=4096"
# install app dependencies
COPY ./frontend/package.json ./frontend/package-lock.json ./frontend/
RUN npm --prefix frontend install
COPY ./frontend/ ./frontend/
# start app
CMD ["npm", "--prefix", "frontend", "start"]
EXPOSE 8082