From 0cb96b12bb61652aea003c1dfbb24b3a9a7be9d5 Mon Sep 17 00:00:00 2001 From: Korbs Date: Thu, 23 Nov 2023 20:59:13 -0500 Subject: [PATCH] Use Alpine Linux instead of Debian --- Dockerfile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index c934dca0..73794cf3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,28 +4,18 @@ ## To run the image, run: ## docker run -d -p 6003:6003 poketube -# Base (Debian) -FROM debian +# Base (Alpine Linux) +FROM alpine # Set Work Directory WORKDIR /poketube COPY . /poketube -# Expose Ports +# Expose Default Ports EXPOSE 6003 # Install Requirements -RUN apt-get update && apt-get -y install \ - libcurl4-openssl-dev make g++ ca-certificates curl gnupg - -# Install NodeJS v18 -RUN mkdir -p /etc/apt/keyrings -RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg - -RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list - -RUN apt-get update -RUN apt-get -y install nodejs +RUN apk add nodejs npm make g++ ca-certificates curl gnupg python3 # Install Packages RUN npm install