mirror of
https://codeberg.org/ashley/poke
synced 2026-03-19 15:07:57 +00:00
dockerize the whole thing
This commit is contained in:
29
Dockerfile
29
Dockerfile
@@ -2,10 +2,14 @@
|
||||
## docker build -t poketube .
|
||||
|
||||
## To run the image, run:
|
||||
## docker run -d -p 6003:6003 poketube
|
||||
## docker run -p 6003:6003 -v ./config.json:/poketube/config.json:ro poketube
|
||||
## but preferably, use the docker-compose.yml file
|
||||
|
||||
# Base (Debian)
|
||||
FROM debian
|
||||
# Base
|
||||
FROM node:16-alpine
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache git build-base python3
|
||||
|
||||
# Set Work Directory
|
||||
WORKDIR /poketube
|
||||
@@ -14,21 +18,8 @@ COPY . /poketube
|
||||
# Expose 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_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install nodejs npm
|
||||
|
||||
# Install Packages
|
||||
# Install Dependencies
|
||||
RUN npm install
|
||||
|
||||
# Run
|
||||
CMD npm start
|
||||
# Start the app
|
||||
CMD ["npm", "start"]
|
||||
|
||||
Reference in New Issue
Block a user