2022-02-07 18:11:57 +00:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
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
|
|
|
|
COPY . .
|
|
|
|
|
2022-02-07 18:11:57 +00:00
|
|
|
RUN apt update
|
|
|
|
RUN apt -y install npm
|
2022-02-07 11:21:59 +00:00
|
|
|
|
|
|
|
# packages we use
|
|
|
|
|
|
|
|
RUN npm init -y
|
2022-02-07 18:11:57 +00:00
|
|
|
RUN npm install webpack webpack-cli --save-dev
|
|
|
|
RUN npm install @babel/core babel-loader @babel/preset-env @babel/preset-react --save-dev
|
|
|
|
RUN npm install react react-dom --save-dev
|
2022-02-07 11:21:59 +00:00
|
|
|
RUN npm install @material-ui/core
|
|
|
|
RUN npm install @babel/plugin-proposal-class-properties
|
|
|
|
RUN npm install react-router-dom@5.2.0
|
|
|
|
RUN npm install @material-ui/icons
|
|
|
|
RUN npm install material-ui-image
|
|
|
|
RUN npm install @mui/system @emotion/react @emotion/styled
|
|
|
|
RUN npm install react-native
|
|
|
|
RUN npm install react-native-svg
|
|
|
|
RUN npm install react-qr-code
|
|
|
|
RUN npm install @mui/material
|
|
|
|
RUN npm install websocket
|
|
|
|
RUN npm install react-countdown
|
|
|
|
RUN npm install @mui/icons-material
|
|
|
|
RUN npm install @mui/x-data-grid
|
|
|
|
RUN npm install react-responsive
|
|
|
|
RUN npm install react-qr-reader
|
|
|
|
|
|
|
|
# launch
|
|
|
|
|
|
|
|
CMD ["npm", "run", "dev"]
|