Alpine Linux (Docker) Setup

Updated on November 4, 2025

Docker file Example (Alpine + PM2)

FROM node:current-alpine3.18

RUN npm install -g pm2

COPY thirdpartyserver-apline /thirdpartyserver-apline

COPY redis-server /redis-server

COPY .env /.env

RUN chmod +x /thirdpartyserver-apline redis-server

WORKDIR /

CMD ["pm2-runtime", "start", "/thirdpartyserver-apline"]

Build the Docker Image

docker build -t myapp .

Run the Docker Container

docker run -d myapp

Optional Debugging

docker exec -it <container_name> sh
ls /root