robosats/frontend/Dockerfile

25 lines
540 B
Docker
Raw Normal View History

2022-08-22 21:30:18 +03:00
FROM node:18-bullseye-slim
2022-02-07 21:11:57 +03:00
RUN mkdir -p /usr/src/frontend
# specifying the working dir inside the container
2022-02-07 21:11:57 +03:00
WORKDIR /usr/src/frontend
RUN apt-get update && \
apt-get install -y python3 \
build-essential
# copy current workdir
2022-08-22 21:30:18 +03:00
COPY package.json package.json
COPY package-lock.json package-lock.json
# install packages
RUN npm install
RUN mv node_modules /tmp/node_modules
2023-05-17 12:27:19 +03:00
# copy entrypoint
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT [ "/usr/src/frontend/entrypoint.sh" ]
CMD ["npm", "run", "build"]