diff --git a/Dockerfile b/Dockerfile index 63a63e0..ca0b14f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,10 @@ COPY package*.json ./ RUN npm install COPY . . -VOLUME /app/config.js -EXPOSE 8080 - -RUN echo '#!/bin/sh\nnode watcher.js & http-server ./static -p 8080\n' > /app/start.sh && \ +RUN echo '#!/bin/sh' > /app/start.sh && \ + echo 'node watcher.js & http-server ./static -p 8080' >> /app/start.sh && \ chmod +x /app/start.sh +EXPOSE 8080 +VOLUME /app/config.js + CMD ["/app/start.sh"] \ No newline at end of file diff --git a/docker-compose-build.yml b/docker-compose-build.yml index 55789b2..400e6cc 100644 --- a/docker-compose-build.yml +++ b/docker-compose-build.yml @@ -1,5 +1,5 @@ services: - app: + statuspage: build: context: . dockerfile: Dockerfile