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
|
||||
|
||||
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"]
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
app:
|
||||
statuspage:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue