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

27 lines
591 B
Docker

FROM node:lts-bullseye-slim
ARG VERSION
RUN apt-get update
RUN apt-get install -y git
RUN npm install -g pnpm pm2
RUN git clone --depth 1 --branch ${VERSION} https://github.com/AmruthPillai/Reactive-Resume.git /app
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1
RUN pnpm install --frozen-lockfile
RUN pnpm build
RUN npx playwright install-deps
COPY .env /data/.env.template
COPY entrypoint.sh /data/entrypoint.sh
COPY ecosystem.config.js /data/ecosystem.config.js
RUN chmod a+x /data/entrypoint.sh
ENTRYPOINT [ "/data/entrypoint.sh" ]
CMD [ "pm2-runtime", "/data/ecosystem.config.js" ]