mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 21:16:09 +01:00
15 lines
No EOL
289 B
Docker
15 lines
No EOL
289 B
Docker
FROM node:18-alpine
|
|
|
|
RUN npm install -g http-server
|
|
|
|
WORKDIR /app
|
|
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 && \
|
|
chmod +x /app/start.sh
|
|
CMD ["/app/start.sh"] |