FROM node:lts-alpine RUN apk add git # Define the Git repository URL (replace with your actual URL) ARG GIT_URL=https://github.com/schlagmichdoch/PairDrop.git RUN ls -a # Clone the Git repository RUN git clone $GIT_URL RUN ls /PairDrop RUN ls ./ WORKDIR /PairDrop/node/app COPY package*.json /PairDrop RUN npm ci COPY . . # environment settings ENV NODE_ENV="production" EXPOSE 3000 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1 ENTRYPOINT ["npm", "start"]