File size: 819 Bytes
00dcdb1 df13458 3b5a67c 1e7c7c1 3b5a67c f6dfb5f 3b5a67c f6dfb5f 3b5a67c f6dfb5f b4d205b f6dfb5f b4d205b f6dfb5f b4d205b 66506ca b4d205b df13458 b4d205b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# Use Ubuntu as a parent image
FROM ubuntu:latest
# Set environment variables for non-interactive installation
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary packages
RUN apt-get update && \
apt-get install -y nodejs npm git && \
apt-get clean
# Create /downloads directory and set permissions
RUN mkdir -p /downloads && chmod 777 /downloads
# Set environment variables for the user
# Set the working directory
WORKDIR /downloads
# Clone the Piped repository
RUN git clone https://github.com/TeamPiped/Piped-Docker.git .
# Change ownership to the new user
# Set up the environment variables
ENV NODE_ENV=production
# Install the dependencies
WORKDIR /downloads/Piped-Docker
RUN npm install
# Expose the port the app runs on
EXPOSE 8080
# Command to run the application
CMD ["npm", "start"]
|