Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mike Pham
sinopia
Commits
3dd1213e
Commit
3dd1213e
authored
Jul 31, 2016
by
Mike Pham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing permissions
parent
c14d8be1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
Dockerfile
Dockerfile
+8
-6
No files found.
Dockerfile
View file @
3dd1213e
...
...
@@ -4,6 +4,12 @@ MAINTAINER "Mike Pham (support@nativecode.com)"
# Environment variables.
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
set
-x
\
&&
apt-get update
\
...
...
@@ -11,14 +17,10 @@ RUN set -x \
&&
npm
install
--global
--prefix
/opt/sinopia
--production
--silent
sinopia
>
/dev/null
\
&&
chown
daemon:root
-R
/opt/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
4873
RUN
mkdir
/data
;
chown
daemon:root /data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment