update docker-compose and dockerfile

pull/12/head
Isaac Grynsztein 6 years ago
parent e2d23404ce
commit 2b1c68bad0

@ -1,28 +1,21 @@
FROM ubuntu:18.04 FROM alpine:3.11
RUN apt-get update && apt-get install -y \ RUN apk add --update npm python ffmpeg
nodejs \
apache2 \
npm \
youtube-dl
# Change directory so that our commands run inside this new directory # Change directory so that our commands run inside this new directory
WORKDIR /var/www/html WORKDIR /app
# Copy dependency definitions # Copy dependency definitions
COPY ./ /var/www/html/ COPY ./ /app/
# Change directory to backend # Change directory to backend
WORKDIR /var/www/html/backend WORKDIR /app
# Install dependencies on backend # Install dependencies on backend
RUN npm install RUN npm install
# Change back to original directory
WORKDIR /var/www/html
# Expose the port the app runs in # Expose the port the app runs in
EXPOSE 80 EXPOSE 17442
# Run the specified command within the container. # Run the specified command within the container.
CMD ./docker_wrapper.sh CMD [ "node", "app.js" ]

@ -29,6 +29,5 @@ services:
ALLOW_CONFIG_MUTATIONS: 'true' ALLOW_CONFIG_MUTATIONS: 'true'
restart: always restart: always
ports: ports:
- "17442:17442" - "8998:17442"
- "8998:80" image: tzahi12345/youtubedl-material:3.3
image: tzahi12345/youtubedl-material:3.2
Loading…
Cancel
Save