poke/Dockerfile
2024-04-23 00:38:01 +03:00

25 lines
475 B
Docker

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