diff --git a/Dockerfile b/Dockerfile index 0f2f132..df3665b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,21 @@ -FROM ubuntu:18.04 +FROM alpine:3.11 -RUN apt-get update && apt-get install -y \ - nodejs \ - apache2 \ - npm \ - youtube-dl +RUN apk add --update npm python ffmpeg # Change directory so that our commands run inside this new directory -WORKDIR /var/www/html +WORKDIR /app # Copy dependency definitions -COPY ./ /var/www/html/ +COPY ./ /app/ # Change directory to backend -WORKDIR /var/www/html/backend +WORKDIR /app # Install dependencies on backend RUN npm install -# Change back to original directory -WORKDIR /var/www/html - # Expose the port the app runs in -EXPOSE 80 +EXPOSE 17442 # Run the specified command within the container. -CMD ./docker_wrapper.sh \ No newline at end of file +CMD [ "node", "app.js" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2b9c6e9..c0a20e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,6 +29,5 @@ services: ALLOW_CONFIG_MUTATIONS: 'true' restart: always ports: - - "17442:17442" - - "8998:80" - image: tzahi12345/youtubedl-material:3.2 \ No newline at end of file + - "8998:17442" + image: tzahi12345/youtubedl-material:3.3 \ No newline at end of file