box / Dockerfile
uneed's picture
Upload 6 files
f18dd15
raw
history blame
528 Bytes
FROM debian:bullseye-slim
EXPOSE 8080
RUN apk add --no-cache shadow \
&& groupadd sudo \
&& useradd -m drx -u 1000 \
&& echo 'drx:1000' | chpasswd \
&& usermod -aG sudo drx
RUN apt update -y && apt install -y nginx supervisor
COPY box /usr/bin/box
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY nginx.conf /etc/nginx/nginx.conf
COPY config.json /etc/config.json
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /usr/bin/box \
&& chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]