2022-02-24 11:58:15 +00:00
|
|
|
ARG DOCKER_ARCH
|
|
|
|
|
2022-03-24 04:46:07 +00:00
|
|
|
FROM ${DOCKER_ARCH:-amd64}/debian:buster-slim
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends ca-certificates supervisor unzip wget
|
|
|
|
RUN update-ca-certificates
|
2022-03-08 13:30:04 +00:00
|
|
|
RUN mkdir -p /var/log/supervisor /app
|
|
|
|
COPY cmd/storagenode/docker-base/ /
|
2022-03-15 13:01:14 +00:00
|
|
|
# set permissions to allow non-root access
|
|
|
|
RUN chmod -R a+rw /etc/supervisor /var/log/supervisor /app
|
2022-03-18 08:41:21 +00:00
|
|
|
# remove the default supervisord.conf
|
|
|
|
RUN rm -rf /etc/supervisord.conf
|
|
|
|
# create a symlink to custom supervisord config file at the default location
|
|
|
|
RUN ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
|