Merge pull request #112 from excalidraw/revert-71-docker

Revert "Containerise socket server"
This commit is contained in:
Christopher Chedeau 2020-10-21 16:36:21 -07:00 committed by GitHub
commit 8887424e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 33 deletions

View File

@ -1,20 +0,0 @@
name: Publish Docker
on:
push:
branches:
- master
jobs:
publish-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: excalidraw/excalidraw-room
tag_with_ref: true
tag_with_sha: true

View File

@ -1,13 +0,0 @@
FROM node:12-alpine
WORKDIR /excalidraw-room
COPY package.json yarn.lock ./
RUN yarn
COPY tsconfig.json ./
COPY src ./src
RUN yarn build
EXPOSE 80
CMD ["yarn", "start"]

View File

@ -7,6 +7,7 @@
"build": "tsc", "build": "tsc",
"fix": "yarn prettier --write", "fix": "yarn prettier --write",
"lint": "yarn prettier --list-different", "lint": "yarn prettier --list-different",
"postinstall": "npm run build",
"prettier": "prettier \"**/*.{ts,md,json,yaml,yml}\"", "prettier": "prettier \"**/*.{ts,md,json,yaml,yml}\"",
"start": "node dist/index.js", "start": "node dist/index.js",
"test": "yarn lint" "test": "yarn lint"