2b57086c0f
Switch from reading and writing a version file to reading from (and testing the existence of) package.json. Install jq to handle this parsing
13 lines
349 B
Docker
13 lines
349 B
Docker
FROM httpd
|
|
ENV PUID=${PUID:-1000}
|
|
ENV PGID=${PGID:-1000}
|
|
COPY init.sh /init.sh
|
|
RUN apt-get update && \
|
|
apt-get -y upgrade && \
|
|
apt-get -y install curl p7zip-full megatools git jq && \
|
|
chmod +x /init.sh
|
|
WORKDIR /usr/local/apache2/htdocs/
|
|
RUN mkdir download
|
|
RUN chown -R $PUID:$PGID /usr/local/apache2/htdocs
|
|
ENV IMG false
|
|
CMD ["/bin/bash","/init.sh"] |