ToolJet/docker/client.Dockerfile

26 lines
454 B
Text
Raw Normal View History

# pull official base image
2021-05-26 02:11:12 +00:00
FROM node:14.17.0-alpine
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
2021-05-26 02:11:12 +00:00
# Fix for heap limit allocation issue
ENV NODE_OPTIONS="--max-old-space-size=2048"
# install app dependencies
2021-05-26 02:11:12 +00:00
COPY package.json package-lock.json ./
RUN npm install
RUN npm install react-scripts@3.4.1 -g --silent
# add app
COPY . ./
2021-05-26 02:11:12 +00:00
# start app
CMD ["npm", "start"]
EXPOSE 8082