robosats/frontend/Dockerfile

18 lines
482 B
Docker
Raw Normal View History

2022-08-22 18:30:18 +00:00
FROM node:18-bullseye-slim
2022-02-07 18:11:57 +00:00
RUN mkdir -p /usr/src/frontend
# specifying the working dir inside the container
2022-02-07 18:11:57 +00:00
WORKDIR /usr/src/frontend
# 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
# packages we use
# Remove --legacy-peer-deps once @nivo/core and @nivo/line are react18 compatible
RUN npm install --legacy-peer-deps
# launch
CMD ["npm", "run", "build"]