diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml deleted file mode 100644 index 77f9bf0..0000000 --- a/.github/workflows/publish-docker.yml +++ /dev/null @@ -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 diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 06c09cc..0000000 --- a/Dockerfile +++ /dev/null @@ -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"] diff --git a/package.json b/package.json index d20bf7c..7c00d24 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "tsc", "fix": "yarn prettier --write", "lint": "yarn prettier --list-different", + "postinstall": "npm run build", "prettier": "prettier \"**/*.{ts,md,json,yaml,yml}\"", "start": "node dist/index.js", "test": "yarn lint"