robosats/nodeapp/Dockerfile

26 lines
726 B
Docker
Raw Permalink Normal View History

FROM alpine:3.18.0
2023-05-12 12:18:48 +00:00
LABEL maintainer="Reckless_Satoshi https://github.com/reckless-satoshi"
2023-05-14 23:32:44 +00:00
# Needs a copy or symlink of /frontend/static in /nodeapp/static
# Github client release workflow copies /frontend/static here
RUN mkdir -p /usr/src/robosats
WORKDIR /usr/src/robosats
2023-05-12 12:18:48 +00:00
RUN set -x \
&& addgroup -g 101 -S nginx \
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx
COPY . .
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./coordinators/ /etc/nginx/conf.d/
RUN apk -U --no-cache upgrade \
&& apk --no-cache add socat \
&& apk --no-cache add nginx
EXPOSE 12596
2023-03-10 17:02:47 +00:00
HEALTHCHECK CMD curl --fail http://localhost:12596/selfhosted || exit 1
CMD ["sh", "robosats-client.sh"]