chore [P-01]: Докер
This commit is contained in:
1 parent
29cf9b2a14
commit
bc6668c54c
225 files changed
+398
-1409
No files matched your search
@@ -0,0 +1,29 @@
|
||||
FROM node:lts-alpine
|
||||
|
||||
# Установить рабочую директорию
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
RUN npm install @babel/plugin-proposal-unicode-property-regex \
|
||||
@babel/preset-env @babel/preset-modules \
|
||||
babel-jest @babel/runtime @babel/plugin-transform-runtime
|
||||
WORKDIR /app/documentation/
|
||||
|
||||
# Очистить кэш npm и установить необходимые пакеты
|
||||
RUN npm install vitepress vue-md-parser @vue/vue3-jest \
|
||||
@babel/plugin-proposal-unicode-property-regex \
|
||||
@babel/preset-env @babel/preset-modules babel-jest @babel/runtime \
|
||||
axios @babel/plugin-transform-runtime \
|
||||
babel-jest jest jest-environment-jsdom @jest/globals \
|
||||
@vue/cli-plugin-babel @vue/compiler-dom @vue/server-renderer @vue/test-utils \
|
||||
jest-transform-stub
|
||||
RUN mkdir -p /app/documentation/docs/public/test-coverage/src/
|
||||
RUN chmod 777 /app/documentation/docs/public/test-coverage/src/
|
||||
COPY ./documentation/babel.config.js /app
|
||||
# Открыть порт для VitePress
|
||||
EXPOSE 5173
|
||||
|
||||
# Держать контейнер запущенным
|
||||
# CMD ["tail", "-f", "/dev/null"]
|
||||
# Раскомментируйте следующую строку, чтобы запустить приложение
|
||||
CMD ["sh", "-c", "npx vue-md-parser && npx jest && npx vitepress dev docs --host 0.0.0.0"]
|
||||
Reference in new issue
Block a user