Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
430feafb
Commit
430feafb
authored
Feb 25, 2019
by
Pablo Panero
Browse files
docker: several bug fixes (assets installation and CMD)
parent
b6013359
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
430feafb
...
...
@@ -23,11 +23,12 @@ RUN chmod 666 /${WORKING_DIR}/src/uwsgi.pid
RUN
sh /
${
WORKING_DIR
}
/src/scripts/patch/oauth_patch.sh
# Install UI
USER
invenio
RUN
invenio collect
-v
RUN
invenio webpack buildall
# Move static files to instance folder
RUN
mv
/
${
WORKING_DIR
}
/src/static/images/cernsearchicon.png
${
INVENIO_INSTANCE_PATH
}
/static/images/cernsearchicon.png
RUN
cp
/
${
WORKING_DIR
}
/src/static/images/cernsearchicon.png
${
INVENIO_INSTANCE_PATH
}
/static/images/cernsearchicon.png
EXPOSE
5000
...
...
@@ -41,6 +42,4 @@ ENV UWSGI_PROCESSES ${UWSGI_PROCESSES:-2}
ARG
UWSGI_THREADS=2
ENV
UWSGI_THREADS ${UWSGI_THREADS:-2}
USER
invenio
CMD
["/bin/sh", "-c", "uwsgi --module ${UWSGI_WSGI_MODULE} --socket 0.0.0.0:${UWSGI_PORT} --master --processes ${UWSGI_PROCESSES} --threads ${UWSGI_THREADS} --stats /tmp/stats.socket"]
\ No newline at end of file
CMD
["/bin/bash", "-c", "uwsgi --module ${UWSGI_WSGI_MODULE} --socket 0.0.0.0:${UWSGI_PORT} --master --processes ${UWSGI_PROCESSES} --threads ${UWSGI_THREADS} --stats /tmp/stats.socket"]
\ No newline at end of file
Write
Preview
Supports
Markdown
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