You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
359 B

FROM node:18-alpine
RUN apk add --no-cache git
# Clone the public backend repo into /app
RUN git clone https://sinistea.pkmn.cloud/Quildra/OriginDex-API.git /app
WORKDIR /app
# Install dependencies
RUN npm install
RUN npm run build
# Expose port 5000
EXPOSE 5000
# Start your Express API (assuming app.js is your entry file)
CMD ["npm", "run", "start"]