This commit is contained in:
ekardnam 2019-08-05 23:11:38 +02:00
parent b5fd3f00e0
commit affbbc7c1a
2 changed files with 21 additions and 4 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM node:10
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
# Has to be changed according to config
EXPOSE 8000
CMD [ "node", "app.js" ]

View file

@ -2,10 +2,9 @@
"name": "xtweet",
"version": "1.0.0",
"description": "Cross tweet from Mastodon",
"main": "main.js",
"scripts": {},
"bin": {
"xtweet": "app.js"
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"repository": {
"type": "git",