Compare commits

...

8 Commits

Author SHA1 Message Date
snyk-bot 60f6947435 fix: package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EXPRESS-6474509
2024-03-27 03:11:37 +00:00
Klemek 6c44e5d911 Create docker.yml 2021-06-09 15:33:41 +02:00
Klemek 006f550f33 Merge pull request #6 from Klemek/snyk-fix-3b093f428d75a4c3435020e302401964
[Snyk] Security upgrade socket.io from 2.4.0 to 3.0.0
2021-03-30 10:54:04 +02:00
snyk-bot 739ae0e8c9 fix: package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-ENGINEIO-1056749
2021-03-30 08:53:20 +00:00
Klemek c9d486529b Merge pull request #5 from Klemek/dependabot/npm_and_yarn/socket.io-2.4.0
Bump socket.io from 2.3.0 to 2.4.0
2021-01-24 10:46:24 +01:00
dependabot[bot] 6cf3ca1ee6 Bump socket.io from 2.3.0 to 2.4.0
Bumps [socket.io](https://github.com/socketio/socket.io) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/2.4.0/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/2.3.0...2.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-21 02:54:29 +00:00
klemek 09d492fb0e Dockerfile support 2021-01-20 19:08:53 +01:00
Klemek 81bd82831e Merge pull request #1 from Klemek/snyk-upgrade-ab468e9091690a243249aa5d25b8fbb2
[Snyk] Upgrade express from 4.16.4 to 4.17.1
2019-10-01 19:19:33 +02:00
4 changed files with 378 additions and 443 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Docker
on: ["push", "pull_request"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: false
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Executable
+18
View File
@@ -0,0 +1,18 @@
FROM node:14
# Create app directory
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
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
CMD [ "sh", "-c", "node server.js" ]
+324 -441
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -4,7 +4,7 @@
"description": "my first socket.io app",
"dependencies": {
"color-convert": "^1.9.3",
"express": "^4.17.1",
"socket.io": "^2.3.0"
"express": "^4.19.2",
"socket.io": "^3.0.0"
}
}