mikupad/Dockerfile
Lim Ding Wen 98912426a7 Dockerize server
Adds a new argument and environment variable to change the SQLite
storage path, which helps with the Docker volume.

Adds a .gitignore for any docker-compose.override.yml files.
2025-07-06 16:28:56 +08:00

18 lines
No EOL
390 B
Docker

FROM node:20.19.3
COPY project /app/project
COPY server /app/server
COPY mikupad.html /app/mikupad.html
COPY compile.sh /app/compile.sh
# Compile HTML
WORKDIR /app
RUN /bin/bash compile.sh
# Server expects mikupad.html
RUN mv /app/mikupad_compiled.html /app/mikupad.html
# Compile server
WORKDIR /app/server
RUN npm install --no-audit
ENTRYPOINT [ "node", "server.js" ]