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.
19 lines
359 B
19 lines
359 B
|
12 months ago
|
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"]
|