mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 13:06:08 +01:00
Fixed Dockerfile (refs #1)
This commit is contained in:
parent
1b55a94b17
commit
01768fcf49
2 changed files with 6 additions and 5 deletions
|
|
@ -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"]
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
services:
|
services:
|
||||||
app:
|
statuspage:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue