Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sinopia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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