ToolJet/docker/client.Dockerfile.dev
Akshay e3317aa5b7
Chore: Docker compose plugins dev (#1953)
* add plugins to docker compose

* build common

* change cmd

* build:pkgs

* fix'

* temp: add named vol

* update docker-compose for plugins dev

* update seed script to transpile only

* fix ci

* fix ci

Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
2022-01-27 15:08:32 +05:30

29 lines
621 B
Text

# pull official base image
FROM node:14.17.3-alpine
ENV NODE_ENV=development
RUN npm i -g npm@7.20.0
# set working directory
WORKDIR /app
COPY ./package.json ./package.json
# 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=4096"
# install app dependencies
COPY ./frontend/package.json ./frontend/package-lock.json ./frontend/
RUN npm --prefix frontend install
COPY ./frontend/ ./frontend/
RUN npm install react-scripts@3.4.1 -g --silent
# start app
CMD ["npm", "--prefix", "frontend", "start"]
EXPOSE 8082