add start.sh as command

This commit is contained in:
Umputun
2018-04-10 15:02:45 -05:00
parent b1ddc35d3e
commit e634d5ae3e
3 changed files with 10 additions and 1 deletions
+3
View File
@@ -33,6 +33,9 @@ COPY --from=build-backend /go/src/github.com/umputun/remark/remark /srv/
COPY --from=build-frontend /srv/web/public/ /srv/web
RUN chown -R umputun:umputun /srv
ADD start.sh /srv/start.sh
RUN chmod +x /srv/start.sh
USER umputun
WORKDIR /srv
+1 -1
View File
@@ -42,4 +42,4 @@ services:
#- ./web:/srv/web # uncomment to map web directory directly. It will propagate local changes to container without redeploy
user: ${USER} # if local UID != 1001 (default) set `USER` in your env, i.e. export USER=`id -u $USER`
command: /srv/remark server
command: /srv/start.sh
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
echo "prepare environment"
echo "start remark42 server"
/srv/remark server