2022-08-22 18:30:18 +00:00
|
|
|
FROM node:18-bullseye-slim
|
2022-02-07 11:21:59 +00:00
|
|
|
|
2022-02-07 18:11:57 +00:00
|
|
|
RUN mkdir -p /usr/src/frontend
|
2022-02-07 11:21:59 +00:00
|
|
|
|
|
|
|
# specifying the working dir inside the container
|
2022-02-07 18:11:57 +00:00
|
|
|
WORKDIR /usr/src/frontend
|
2022-02-07 11:21:59 +00:00
|
|
|
|
|
|
|
# copy current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
|
2022-08-22 18:30:18 +00:00
|
|
|
COPY package.json package.json
|
|
|
|
COPY package-lock.json package-lock.json
|
2022-02-07 11:21:59 +00:00
|
|
|
|
|
|
|
# packages we use
|
2022-08-30 19:55:53 +00:00
|
|
|
# Remove --legacy-peer-deps once @nivo/core and @nivo/line are react18 compatible
|
|
|
|
RUN npm install --legacy-peer-deps
|
2022-02-07 11:21:59 +00:00
|
|
|
|
|
|
|
# launch
|
|
|
|
|
2022-06-01 23:49:27 +00:00
|
|
|
CMD ["npm", "run", "build"]
|