mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-30 18:07:20 +00:00
23 lines
375 B
Text
23 lines
375 B
Text
|
|
# pull official base image
|
||
|
|
FROM node:14.9.0-alpine
|
||
|
|
|
||
|
|
# set working directory
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
# add `/app/node_modules/.bin` to $PATH
|
||
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
||
|
|
|
||
|
|
# install app dependencies
|
||
|
|
COPY package.json ./
|
||
|
|
COPY 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
|