init docker
This commit is contained in:
parent
539671ddc1
commit
bbafc4d92a
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
node_modules
|
||||
docker-compose.yml.example
|
||||
.env
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -101,4 +101,6 @@ dist
|
|||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
.tern-port
|
||||
|
||||
docker-compose.yml
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
FROM node:16-alpine
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY . .
|
||||
CMD yarn start
|
8
docker-compose.yml.example
Normal file
8
docker-compose.yml.example
Normal file
|
@ -0,0 +1,8 @@
|
|||
version: '3'
|
||||
services:
|
||||
verge_mastodon_bot:
|
||||
restart: always
|
||||
image: verge-mastodon-bot
|
||||
environment:
|
||||
- ACCESS_TOKEN=token
|
||||
- NODE_ENV=production
|
|
@ -6,6 +6,7 @@
|
|||
"author": "Milan Mehra <milan@milanm.org>",
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"build": "docker build . -t verge-mastodon-bot",
|
||||
"start": "node index.js",
|
||||
"pull": "git fetch origin && git reset --hard origin/main && yarn install"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue