Skip to content

Commit

Permalink
use restart policy instead of in-container daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Apr 30, 2020
1 parent 242b73d commit 5338521
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM node:12-alpine
RUN apk add git
RUN mkdir /root/src
RUN npm install -g forever
COPY . /root/src
WORKDIR /root/src
RUN npm install
ARG viewer
RUN if [ -z ${viewer} ]; then git clone https://github.com/camicroscope/camicroscope.git; else git clone https://github.com/camicroscope/camicroscope.git --branch=$viewer; fi
EXPOSE 8010
CMD forever caracal.js
CMD node caracal.js

0 comments on commit 5338521

Please sign in to comment.