mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 21:58:15 +01:00
25 lines
475 B
Docker
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"]
|