mirror of
https://github.com/lmg-anon/mikupad.git
synced 2026-07-09 17:19:17 +00:00
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.
18 lines
No EOL
390 B
Docker
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" ] |