diff --git a/README.md b/README.md index 69b155ba..02fc9c7e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # YoutubeDL-Material -[![](https://img.shields.io/docker/pulls/tzahi12345/youtubedl-material.svg)](https://hub.docker.com/repository/docker/tzahi12345/youtubedl-material) -[![](https://img.shields.io/docker/image-size/tzahi12345/youtubedl-material?sort=date)](https://hub.docker.com/repository/docker/tzahi12345/youtubedl-material) +[![](https://img.shields.io/docker/pulls/tzahi12345/youtubedl-material.svg)](https://hub.docker.com/r/tzahi12345/youtubedl-material) +[![](https://img.shields.io/docker/image-size/tzahi12345/youtubedl-material?sort=date)](https://hub.docker.com/r/tzahi12345/youtubedl-material) [![](https://img.shields.io/badge/%E2%86%91_Deploy_to-Heroku-7056bf.svg)](https://heroku.com/deploy?template=https://github.com/Tzahi12345/YoutubeDL-Material) [![](https://img.shields.io/github/issues/Tzahi12345/YoutubeDL-Material)](https://github.com/Tzahi12345/YoutubeDL-Material/issues) [![](https://img.shields.io/github/license/Tzahi12345/YoutubeDL-Material)](https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/LICENSE.md) diff --git a/backend/.dockerignore b/backend/.dockerignore index 99a3d5b2..f88c7336 100644 --- a/backend/.dockerignore +++ b/backend/.dockerignore @@ -1,2 +1,4 @@ node_modules -*.exe \ No newline at end of file +*.exe +docker-compose.yml +Dockerfile diff --git a/backend/Dockerfile b/backend/Dockerfile index 8e0b2f4d..b458ac4b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,24 +1,18 @@ FROM alpine:3.11 RUN \ -apk add --update npm python ffmpeg && \ -apk add --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \ +apk add --no-cache npm python ffmpeg && \ +apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ atomicparsley -# Change directory so that our commands run inside this new directory WORKDIR /app -# Copy dependency definitions -COPY ./ /app/ +COPY package.json /app/ -# Change directory to backend -WORKDIR /app - -# Install dependencies on backend RUN npm install -# Expose the port the app runs in +COPY ./ /app/ + EXPOSE 17442 -# Run the specified command within the container. -CMD [ "node", "app.js" ] \ No newline at end of file +CMD [ "node", "app.js" ]