mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* separate dockerfile for tooljet client in development mode * production dockerfile for tooljet client * reference the tooljet clients dev dockerfile in the docker-compose file * use a fallback url for API_URL in cases where TOOLJET_SERVER_URL is not defined * nginx config file for the front-end * docker-compose file for production deploys * dont run postgres inside docker-compose * use an entrypoint script for setting the server host for nginx * separate volume for fallback certs * add docs for docker-compose deployment * add required database keys in the .env.example file * address review comments
25 lines
454 B
Text
25 lines
454 B
Text
# pull official base image
|
|
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
|
|
|
|
# Fix for heap limit allocation issue
|
|
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
|
|
|
# install app dependencies
|
|
COPY package.json package-lock.json ./
|
|
RUN npm install
|
|
RUN npm install react-scripts@3.4.1 -g --silent
|
|
|
|
# add app
|
|
COPY . ./
|
|
|
|
|
|
# start app
|
|
CMD ["npm", "start"]
|
|
|
|
EXPOSE 8082
|