mirror of
https://github.com/suitenumerique/docs.git
synced 2026-05-10 09:02:35 +02:00
wip containerized the app
This commit is contained in:
28
src/blocknote/Dockerfile
Normal file
28
src/blocknote/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM node:20-alpine AS dependencies
|
||||
|
||||
WORKDIR /home/blocknote
|
||||
|
||||
COPY ./src/blocknote/package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY .dockerignore ./.dockerignore
|
||||
COPY ./src/blocknote/ .
|
||||
|
||||
FROM dependencies AS blocknote-builder
|
||||
|
||||
WORKDIR /home/blocknote
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# ---- Blocknote image ----
|
||||
FROM blocknote-builder AS production
|
||||
|
||||
# Un-privileged user running the application
|
||||
ARG DOCKER_USER
|
||||
USER ${DOCKER_USER}
|
||||
|
||||
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|
||||
CMD ["npm", "run", "start"]
|
||||
Reference in New Issue
Block a user