1
Fork 0
This commit is contained in:
Korbs 2023-11-25 06:11:16 -05:00
parent 1ff7b82cde
commit 18d7a75795

View file

@ -4,18 +4,28 @@
## To run the image, run:
## docker run -d -p 6003:6003 poketube
# Base (Alpine Linux)
FROM alpine
# Base (Debian)
FROM debian
# Set Work Directory
WORKDIR /poketube
COPY . /poketube
# Expose Default Ports
# Expose Ports
EXPOSE 6003
# Install Requirements
RUN apk add nodejs npm make g++ ca-certificates curl gnupg python3
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
# Install Packages
RUN npm install