forked from DhanushNehru/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.Dockerfile.dev
More file actions
27 lines (18 loc) · 589 Bytes
/
client.Dockerfile.dev
File metadata and controls
27 lines (18 loc) · 589 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# pull official base image
FROM node:18.18.2-buster
ENV NODE_ENV=development
RUN npm i -g npm@9.8.1
# 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