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