Skip to content

Commit f122b25

Browse files
committed
cleanup
1 parent 4c4e16e commit f122b25

File tree

5 files changed

+28
-23
lines changed

5 files changed

+28
-23
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
# We're a library, so please, no lock files
99
/package-lock.json
1010
/yarn.lock
11+
.env

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ FROM node:10-alpine
22

33
WORKDIR /app
44
COPY . /app/
5-
RUN yarn install
5+
RUN npm install
66

77
EXPOSE 8080
88

9-
ENTRYPOINT ["node"]
10-
CMD ["."]
9+
CMD ["npm", "start"]

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.1"
2+
3+
services:
4+
micropub:
5+
image: maxandersen/webpage-micropub-to-github
6+
ports:
7+
- 8080:8080
8+
env_file:
9+
- ./config.env

now.json

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
{
2-
"name": "webpage-micropub-to-github",
3-
"type": "docker",
4-
"alias": "sendung-micropub.now.sh",
5-
"public": true,
6-
"scale": {
7-
"bru1": {
8-
"min": 0,
9-
"max": 1
10-
}
11-
},
12-
"env": {
13-
"MICROPUB_TOKEN_ENDPOINT": "https://tokens.indieauth.com/token",
14-
"MICROPUB_TOKEN_ME": "https://www.sendung.de/",
15-
"MICROPUB_GITHUB_TOKEN": "@micropub-github-token",
16-
"MICROPUB_GITHUB_USER": "marians",
17-
"MICROPUB_SITE_GITHUB_REPO": "www.sendung.de",
18-
"MICROPUB_SITE_URL": "https://www.sendung.de/",
19-
"MICROPUB_FILENAME_STYLE": "\"_posts/:year-:month-:day-:slug\"",
20-
"MICROPUB_PERMALINK_STYLE": "\":year-:month-:day-:slug\"",
21-
"MICROPUB_MEDIA_FILES_STYLE": "\"media/:year-:month-:slug/:filesslug\""
2+
"name": "webpage-micropub-to-github",
3+
"alias": "xamdk-micropub.now.sh",
4+
"public": true,
5+
"version": 1,
6+
"type": "docker",
7+
"env": {
8+
"MICROPUB_TOKEN_ENDPOINT": "https://tokens.indieauth.com/token",
9+
"MICROPUB_TOKEN_ME": "https://xam.dk",
10+
"MICROPUB_GITHUB_TOKEN": "@micropub-github-token",
11+
"MICROPUB_GITHUB_USER": "maxandersen",
12+
"MICROPUB_SITE_GITHUB_REPO": "xam.dk",
13+
"MICROPUB_SITE_URL": "https://xam.dk",
14+
"MICROPUB_MEDIA_FILES_STYLE": "\"media/:year-:month-:slug/:filesslug\"",
15+
"MICROPUB_LAYOUT_NAME": "false"
2216
}
2317
}

0 commit comments

Comments
 (0)