This repository has been archived on 2024-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
reactive-resume-docker/Dockerfile

23 lines
473 B
Docker

FROM node:lts-bullseye-slim
ARG VERSION
RUN apt update
RUN apt install -y git
RUN git clone --depth 1 --branch ${VERSION} https://github.com/AmruthPillai/Reactive-Resume.git app
RUN npm install -g pnpm pm2
WORKDIR /app
RUN pnpm install --frozen-lockfile
RUN pnpm build
COPY . .
RUN cp .env /tmp/.env
RUN mv entrypoint.sh /usr/bin/entrypoint.sh && chmod a+x /usr/bin/entrypoint.sh
ENTRYPOINT [ "/usr/bin/entrypoint.sh" ]
CMD [ "pm2-runtime", "ecosystem.config.js" ]