Commit 3dd1213e authored by Mike Pham's avatar Mike Pham

fixing permissions

parent c14d8be1
...@@ -4,6 +4,12 @@ MAINTAINER "Mike Pham (support@nativecode.com)" ...@@ -4,6 +4,12 @@ MAINTAINER "Mike Pham (support@nativecode.com)"
# Environment variables. # Environment variables.
ENV SINOPIA_PREFIX https://localhost ENV SINOPIA_PREFIX https://localhost
# App contents.
WORKDIR /opt/sinopia/conf.d
ADD docker-entrypoint.sh /docker-entrypoint.sh
ADD templates/config.yaml config.yaml
ADD templates/.sinopia-db.json .sinopia-db.json
# Run package installer first so rebuilding the image is faster. # Run package installer first so rebuilding the image is faster.
RUN set -x \ RUN set -x \
&& apt-get update \ && apt-get update \
...@@ -11,14 +17,10 @@ RUN set -x \ ...@@ -11,14 +17,10 @@ RUN set -x \
&& npm install --global --prefix /opt/sinopia --production --silent sinopia > /dev/null \ && npm install --global --prefix /opt/sinopia --production --silent sinopia > /dev/null \
&& chown daemon:root -R /opt/sinopia \ && chown daemon:root -R /opt/sinopia \
&& ln -s /opt/sinopia/bin/sinopia /usr/local/bin/sinopia \ && ln -s /opt/sinopia/bin/sinopia /usr/local/bin/sinopia \
&& chown root:root /docker-entrypoint.sh \
&& chmod +x /docker-entrypoint.sh \
; ;
# App contents.
WORKDIR /opt/sinopia/conf.d
ADD docker-entrypoint.sh /docker-entrypoint.sh
ADD templates/config.yaml config.yaml
ADD templates/.sinopia-db.json .sinopia-db.json
# Expose ports and volumes. # Expose ports and volumes.
EXPOSE 4873 EXPOSE 4873
RUN mkdir /data ; chown daemon:root /data RUN mkdir /data ; chown daemon:root /data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment