mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-15 20:06:24 +00:00
25 lines
624 B
Docker
25 lines
624 B
Docker
FROM alpine:3.18.0
|
|
|
|
LABEL maintainer="Reckless_Satoshi https://github.com/reckless-satoshi"
|
|
|
|
# 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
|
|
|
|
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
|
|
|
|
RUN apk -U --no-cache upgrade \
|
|
&& apk --no-cache add nginx
|
|
|
|
EXPOSE 80
|
|
HEALTHCHECK CMD curl --fail http://localhost:80 || exit 1
|
|
|
|
CMD ["sh", "run.sh"]
|