Kokohachi commited on
Commit
db19a46
1 Parent(s): 7640d5e

Initial Commit

Browse files
Files changed (6) hide show
  1. .gitignore +2 -0
  2. Dockerfile +12 -0
  3. articles/.keep +0 -0
  4. books/.keep +0 -0
  5. package-lock.json +23 -0
  6. package.json +5 -0
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ node_modules
2
+ .DS_Store
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts-alpine3.12
2
+
3
+ WORKDIR /app
4
+ RUN apk add --no-cache --virtual .build-deps git \
5
+ && npm init --yes \
6
+ && npm install zenn-cli \
7
+ && npx zenn init \
8
+ && apk del .build-deps
9
+ COPY articles articles
10
+ COPY books books
11
+
12
+ ENTRYPOINT ["npx", "zenn", "preview"]
articles/.keep ADDED
File without changes
books/.keep ADDED
File without changes
package-lock.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "textbook",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "dependencies": {
8
+ "zenn-cli": "^0.1.150"
9
+ }
10
+ },
11
+ "node_modules/zenn-cli": {
12
+ "version": "0.1.150",
13
+ "resolved": "https://registry.npmjs.org/zenn-cli/-/zenn-cli-0.1.150.tgz",
14
+ "integrity": "sha512-sf/oKEx8e74CyFQ4jwFMRKDyF9cVkDH3XrU1IhGddBvwpYYrFySZ5kKL3Wn0BVC7EiqVFMvoxjQ+nEGOoBCW9w==",
15
+ "bin": {
16
+ "zenn": "dist/server/zenn.js"
17
+ },
18
+ "engines": {
19
+ "node": ">=14.0.0"
20
+ }
21
+ }
22
+ }
23
+ }
package.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "dependencies": {
3
+ "zenn-cli": "^0.1.150"
4
+ }
5
+ }