DumbWareio_DumbPad/Dockerfile
Chris 3b5325bc68
Feat/add code syntax highlighting (#65)
* Add syntax highlighting to markdown preview

* Include highlight styles

* disable markedhighlight for now

* fix proper importing for code syntax highlighting with css files and register all languages

* Add language examples for code syntax highlighting

* bump version and update readme.md

* update readme
- add code syntax highlight example

* update readme.md

* Using default languages for highlight.js

* Include all language support by default with option to specify/limit list

* clean up app.js execution

* implement tab indenting and deindenting

* refactor preview code into preview manager

* Add language to copy button and include language label to print preview as well

* Add lazy loading to markdown code styles

* update readme.md image

* Cache highlight languages and simplify variable in server.js

* fix tab indenting / deindenting and refactor all functions to declarations instead of arrow functions for hoisting

* collaborative editing fix for accurate representations between local and remote changes

* refactor undo and redo functionality to be session based per client per notepad
2025-07-13 16:12:05 -07:00

16 lines
199 B
Docker

FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
# Create data directory and ensure it's a volume
VOLUME /app/data
EXPOSE 3000
CMD ["npm", "start"]