2022-08-22 19:51:23 +03:00
|
|
|
FROM node:18-bullseye-slim
|
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/robosats
|
|
|
|
WORKDIR /usr/src/robosats
|
|
|
|
|
|
|
|
COPY . .
|
2022-08-23 20:59:59 +03:00
|
|
|
COPY ./nginx/local.conf /etc/nginx/conf.d/local.conf
|
|
|
|
RUN touch ./selfhosted
|
2022-08-22 19:51:23 +03:00
|
|
|
|
|
|
|
RUN apt-get update
|
2023-03-10 20:02:47 +03:00
|
|
|
RUN apt-get install -y socat nginx curl
|
2022-08-22 19:51:23 +03:00
|
|
|
RUN npm install http-server
|
|
|
|
|
|
|
|
EXPOSE 12596
|
2023-03-10 20:02:47 +03:00
|
|
|
HEALTHCHECK CMD curl --fail http://localhost:12596/selfhosted || exit 1
|
2022-08-22 19:51:23 +03:00
|
|
|
|
2022-08-23 20:59:59 +03:00
|
|
|
CMD ["bash", "robosats-client.sh"]
|