ADD alpine-minirootfs-3.21.5-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
ARG UGNAME=splatcal |
ENV BASE_DIR=/usr/local/splatcal |
ENV BASE_DIR_WEB=/usr/local/splatcal/web |
RUN |1 UGNAME=splatcal /bin/sh -c addgroup -g 1000 ${UGNAME} # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c adduser -u 1000 -G ${UGNAME} -s /bin/sh -D ${UGNAME} # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c apk add apache2 # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c apk add nodejs npm # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c mkdir -p ${BASE_DIR} # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c mkdir -p ${BASE_DIR_WEB} # buildkit |
COPY . /usr/local/splatcal # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c chown -R ${UGNAME}:${UGNAME} ${BASE_DIR} # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c chown -R ${UGNAME}:${UGNAME} ${BASE_DIR_WEB} # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c chown -R ${UGNAME}:${UGNAME} /var/log/apache2 # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c chown -R ${UGNAME}:${UGNAME} /usr/lib/apache2 # buildkit |
RUN |1 UGNAME=splatcal /bin/sh -c chown -R ${UGNAME}:${UGNAME} /run/apache2 # buildkit |
USER splatcal |
COPY ./lib/apache/httpd.conf /etc/apache2/ # buildkit |
WORKDIR /usr/local/splatcal/app |
RUN |1 UGNAME=splatcal /bin/sh -c npm install --omit=dev # buildkit |
ENTRYPOINT ["/usr/local/splatcal/lib/docker-entrypoint.sh"] |
EXPOSE map[8080/tcp:{}] |
CMD ["sh"] |