Docker refuses to work

This commit is contained in:
2021-02-04 04:26:31 +11:00
parent 68751fcd6c
commit e33585c936
3 changed files with 1 additions and 37 deletions
-18
View File
@@ -1,18 +0,0 @@
name: Publish Docker image
on:
release:
types: [ published ]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: krgamestudios/news-server
tag_with_ref: true
-18
View File
@@ -1,18 +0,0 @@
FROM node:15
# Change working directory
WORKDIR "/app"
# Copy package.json and package-lock.json
COPY package*.json ./
# Install npm production packages
RUN npm install --production
COPY . /app
EXPOSE 3100
USER node
ENTRYPOINT ["npm", "start"]
+1 -1
View File
@@ -4,7 +4,7 @@
"description": "An API centric news server. Uses Sequelize and mariaDB by default.", "description": "An API centric news server. Uses Sequelize and mariaDB by default.",
"main": "server/server.js", "main": "server/server.js",
"scripts": { "scripts": {
"start": "node server/server.js", "start": "pm2 start server/server.js --watch",
"dev": "npm run watch:server", "dev": "npm run watch:server",
"watch:server": "nodemon . --ext js,jsx,json --ignore 'node_modules/*'" "watch:server": "nodemon . --ext js,jsx,json --ignore 'node_modules/*'"
}, },