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 19:25:10 +00:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install npm
|
2022-02-07 11:21:59 +00:00
|
|
|
|
|
|
|
# packages we use
|
|
|
|
|
2022-02-07 19:25:10 +00:00
|
|
|
RUN npm install
|
2022-02-07 11:21:59 +00:00
|
|
|
|
|
|
|
# launch
|
|
|
|
|
2022-06-01 23:49:27 +00:00
|
|
|
CMD ["npm", "run", "build"]
|