We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f358b commit e175886Copy full SHA for e175886
Dockerfile
@@ -0,0 +1,11 @@
1
+FROM node:20-slim AS base
2
+
3
+WORKDIR /usr/src/hexo
4
5
+COPY package*.json ./
6
7
+COPY . .
8
9
+RUN npm run clean && npm run build
10
11
+CMD ["npm", "test"]
docker-compose.yml
@@ -0,0 +1,14 @@
+version: '3.8'
+services:
+ hexo:
+ build: .
+ container_name: hexo-dev
+ image: hexo-dev:latest
+ volumes:
+ - .:/usr/src/hexo
+ working_dir: /usr/src/hexo
+ command: npm test
12
+ environment:
13
+ - NODE_ENV=development
14
+ tty: true
0 commit comments