diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a5586351..00000000 --- a/Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -FROM ubuntu:latest - -WORKDIR /app -SHELL ["/bin/bash", "-c"] - -RUN apt-get update &&\ - DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install\ - ca-certificates\ - pkg-config\ - build-essential\ - cmake\ - gcc-7\ - curl\ - mesa-common-dev\ - libglu1-mesa-dev\ - libqt5x11extras5\ - xcb\ - mpv\ - python\ - fuse\ - kmod - -RUN addgroup fuse - -RUN apt-get install -y --reinstall libxcb-xinerama0 -# removing broken youtube-dl & giving execution permissions -RUN apt-get remove -y youtube-dl -RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl - -RUN mkdir -p /usr/local/nvm -ENV NVM_DIR /usr/local/nvm -ENV NODE_VERSION 14.17.0 - -# Install nvm with node and npm -RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash \ - && source $NVM_DIR/nvm.sh \ - && nvm install $NODE_VERSION \ - && nvm alias default $NODE_VERSION \ - && nvm use default - -ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules -ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH - -COPY ./package.json ./ -RUN npm install -COPY ./ ./ - -CMD ["sleep", "500000" ] - diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml deleted file mode 100644 index fda5f125..00000000 --- a/docker-compose.dev.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: "3" - -services: - spotube: - volumes: - - /home/$USER/.config:/root/.config - - ./:/app - - /app/node_modules diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 751fba7f..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: "3" - -services: - spotube: - build: . - volumes: - - /tmp/.X11-unix:/tmp/.X11-unix - environment: - # run `$ xhost local:root` in the host machine to get it work - - DISPLAY=${DISPLAY} - network_mode: host \ No newline at end of file diff --git a/src/helpers/showError.ts b/src/helpers/showError.ts deleted file mode 100644 index bbe8672f..00000000 --- a/src/helpers/showError.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { trace } from "../conf"; -import chalk from "chalk"; - -function showError(error: Error | TypeError, message = "[Error]: ") { - console.error(chalk.red(message), trace ? error : error.message); -} - -export default showError;