Files
peggedassets-server/Dockerfile
2024-06-10 20:16:43 +02:00

22 lines
575 B
Docker

# Use an official Node.js runtime as a parent image
FROM node:20
# Set the working directory in the container to /app
WORKDIR /app
# Clone your repo
RUN git clone https://github.com/DefiLlama/peggedassets-server /app/repo
# Change to the directory of your repo
WORKDIR /app/repo
# RUN git checkout api2
# Install any needed packages specified in package.json
RUN npm install
# Make port 5001 available to the world outside this container
EXPOSE 5001
# bash command to keep the container running
CMD ["bash", "-c", "npm run api2-prod; while true; do sleep 10000; done"]