poke/Dockerfile

26 lines
475 B
Docker
Raw Permalink Normal View History

2023-11-22 00:26:54 +01:00
## To build the image, run:
## docker build -t poketube .
## To run the image, run:
2024-04-22 23:38:01 +02:00
## docker run -p 6003:6003 -v ./config.json:/poketube/config.json:ro poketube
## but preferably, use the docker-compose.yml file
2023-11-22 00:26:54 +01:00
2024-04-22 23:38:01 +02:00
# Base
FROM node:16-alpine
# Install dependencies
RUN apk add --no-cache git build-base python3
2023-11-22 00:26:54 +01:00
# Set Work Directory
WORKDIR /poketube
COPY . /poketube
# Expose Ports
EXPOSE 6003
2024-04-22 23:38:01 +02:00
# Install Dependencies
2023-11-22 00:26:54 +01:00
RUN npm install
2024-04-22 23:38:01 +02:00
# Start the app
CMD ["npm", "start"]