mirror of
https://github.com/Reckless-Satoshi/robosats.git
synced 2024-09-11 19:57:11 +03:00
25 lines
540 B
Docker
25 lines
540 B
Docker
FROM node:18-bullseye-slim
|
|
|
|
RUN mkdir -p /usr/src/frontend
|
|
|
|
# specifying the working dir inside the container
|
|
WORKDIR /usr/src/frontend
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y python3 \
|
|
build-essential
|
|
|
|
# copy current workdir
|
|
COPY package.json package.json
|
|
COPY package-lock.json package-lock.json
|
|
|
|
# install packages
|
|
RUN npm install
|
|
RUN mv node_modules /tmp/node_modules
|
|
|
|
# copy entrypoint
|
|
COPY entrypoint.sh entrypoint.sh
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
ENTRYPOINT [ "/usr/src/frontend/entrypoint.sh" ]
|
|
CMD ["npm", "run", "build"] |