2022-02-24 11:58:15 +00:00
|
|
|
ARG DOCKER_ARCH
|
|
|
|
|
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine:3.15
|
2022-03-18 08:41:21 +00:00
|
|
|
RUN apk --no-cache -U add ca-certificates supervisor wget
|
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
|