2024-11-02 20:32:27 +01:00
|
|
|
FROM phusion/baseimage:jammy-1.0.4
|
2018-01-10 10:17:43 +01:00
|
|
|
LABEL maintainer="Dash Developers <dev@dash.org>"
|
2024-03-25 20:02:52 +01:00
|
|
|
LABEL description="Dockerised DashCore, built from CI"
|
2018-01-10 10:17:43 +01:00
|
|
|
|
2020-10-08 13:34:33 +02:00
|
|
|
ARG USER_ID
|
|
|
|
ARG GROUP_ID
|
2018-01-10 10:17:43 +01:00
|
|
|
|
2024-08-12 06:58:20 +02:00
|
|
|
ENV HOME="/home/dash"
|
2020-10-08 13:34:33 +02:00
|
|
|
|
|
|
|
# add user with specified (or default) user/group ids
|
2024-08-12 06:58:20 +02:00
|
|
|
ENV USER_ID="${USER_ID:-1000}"
|
|
|
|
ENV GROUP_ID="${GROUP_ID:-1000}"
|
2022-08-22 21:42:36 +02:00
|
|
|
RUN groupadd -g ${GROUP_ID} dash && \
|
|
|
|
useradd -u ${USER_ID} -g dash -s /bin/bash -m -d /home/dash dash && \
|
|
|
|
mkdir /home/dash/.dashcore && \
|
|
|
|
chown ${USER_ID}:${GROUP_ID} -R /home/dash
|
2020-10-08 13:34:33 +02:00
|
|
|
|
|
|
|
COPY bin/* /usr/local/bin/
|
|
|
|
|
|
|
|
RUN chmod a+x /usr/local/bin/*
|
|
|
|
|
|
|
|
USER dash
|
|
|
|
|
2022-08-22 21:42:36 +02:00
|
|
|
VOLUME ["/home/dash"]
|
2020-10-08 13:34:33 +02:00
|
|
|
|
|
|
|
EXPOSE 9998 9999 19998 19999
|
|
|
|
|
2022-08-22 21:42:36 +02:00
|
|
|
WORKDIR /home/dash
|