Fixed Dockerfile (refs #1)

This commit is contained in:
MarcUs7i 2025-03-19 16:56:20 +01:00
parent 1b55a94b17
commit 01768fcf49
2 changed files with 6 additions and 5 deletions

View file

@ -7,9 +7,10 @@ COPY package*.json ./
RUN npm install RUN npm install
COPY . . COPY . .
VOLUME /app/config.js RUN echo '#!/bin/sh' > /app/start.sh && \
EXPOSE 8080 echo 'node watcher.js & http-server ./static -p 8080' >> /app/start.sh && \
RUN echo '#!/bin/sh\nnode watcher.js & http-server ./static -p 8080\n' > /app/start.sh && \
chmod +x /app/start.sh chmod +x /app/start.sh
EXPOSE 8080
VOLUME /app/config.js
CMD ["/app/start.sh"] CMD ["/app/start.sh"]

View file

@ -1,5 +1,5 @@
services: services:
app: statuspage:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile